simpletags
Summary
Returns a partially marked up version of the input string.Usage
input|simpletags( [ taglist ] )
Parameters
Name | Type | Description | Required |
---|---|---|---|
taglist | string | The name of the custom tag group that should be used. | No. |
Returns
A partially marked up version of the input string.Description
This operator returns a partially marked up version of the input string. It can be used to allow the usage/pass-through of a small subset of HTML/custom tags (other/disallowed tags will be removed). This operator is typically useful when it comes to allowing some kind of formatting in for example comments (instances of a class that does not support formatting through the XML block datatype). The optional "taglist" parameter can be used to select the list of allowed tags (the default is "TagList"). The tags/groups must be defined in a configuration override for "template.ini". The following table shows the tags that are allowed by default.
Custom tag | HTML replacement |
---|---|
literal |
<pre>...</pre>
|
code |
<pre class="code">...</pre>
|
strong |
<b>...</b>
|
emphasize |
<i>...</i>
|
Examples
Example 1
{'Back To <strong>The</strong> Future'|simpletags()}
The following output will be produced:
Back To <b>The</b> Future
Balazs Halasy (17/03/2005 12:30 pm)
Balazs Halasy (04/05/2005 2:48 pm)
Comments
Deprecated in minds
Thursday 29 May 2008 6:30:25 pm
Adrien
Re: Deprecated in minds
Friday 30 May 2008 7:19:40 am
Svitlana Shatokhina
Tag in a tag
Monday 20 July 2009 5:14:07 pm
Jakub Derdziak
<em>test</em>
It looks like it parse only outsite tag.