Location: PHPKode > projects > Open Power Template > tests/Opt/feature/escaping_5.txt
The escaping in attributes.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root escaping="yes">
<foo parse:bar="e:$value" parse:joe="u:$value">
ABC
</foo>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
<foo bar="hi&amp;" joe="hi&">
ABC
</foo>

>>>>data.php
$view->value = 'hi&';
$this->tpl->escape = false;
Return current item: Open Power Template