Location: PHPKode > projects > Open Power Template > tests/Opt/feature/escaping_3.txt
The escaping is enabled for the template.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root escaping="yes">
{$htmlVariable}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
HTML: &lt;tag&gt;

>>>>data.php
$view->htmlVariable = 'HTML: <tag>';
$this->tpl->escape = false;
Return current item: Open Power Template