From file, 'extension/ezgpg/settings/site.ini.append'
#?ini charset="iso-8859-1"? # eZ publish configuration file. [TemplateSettings] AutoloadPathList[]=extension/ezgpg/autoloads
<?php eZDebug::writeWarning( 'eZGPGOperators::autoload : load template operator' ); echo("eZGPGOperators::autoload : load template operator || is loaded ...<hr /><hr />"); // Operator autoloading $eZTemplateOperatorArray = array(); $eZTemplateOperatorArray[] = array( 'script' => 'extension/ezgpg/autoloads/ezgpg_operators.php', 'class' => 'eZGPGOperators', 'operator_names' => array( 'ezgpg_decode' ) ); ?>
When you need to provide a feature via function in templates.
It is the only way to access additional user defined features without kernel or extension modification
To remove html tags from a string.
=============================
In template.ini(.append.php)
add under
[PHP]
....
PHPOperatorList[striptags]=strip_tags
......
Then in your template use
$yourstring_with_xml|striptags
and catch the stripped output
=============================
See: https://ez.no/community/forum/developer/operator_to_strip_off_html_tags