This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

simpletags

Summary

Returns a partially marked up version of the input string.

Usage

input|simpletags( [ taglist ] )

Parameters

NameTypeDescriptionRequired
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 1:30 pm)

Balazs Halasy (04/05/2005 4:48 pm)


Comments

There are no comments.