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
There are no comments.