Difference between revisions of "StripMarkup extension"

From FollowTheScore
Jump to: navigation, search
Line 3: Line 3:
 
It can be used as a parser extension or as a parser function.
 
It can be used as a parser extension or as a parser function.
  
Example:
+
Example:<pre><nowiki>
 
+
* this is a list
* this is a list
+
* with a [[Main Page]] hyperlink
* with a [[Main Page]] hyperlink
+
</nowiki></pre>
 
 
 
would normally look like this:
 
would normally look like this:
  

Revision as of 06:33, 25 July 2007

The StripMarkup extension removes all wiki and html markup from a portion of wikitext.

It can be used as a parser extension or as a parser function.

Example:
* this is a list
* with a [[Main Page]] hyperlink

would normally look like this:

but would look like this, if it were placed between 'stripmarkup' tags:

<stripmarkup>

</stripmarkup>

The same could be achieved with parser function syntax:

{{#stripmarkup:

  • this is a list
  • with a aaa hyperlink

}}

Note that nothing remains from the hyperlink.