Location: PHPKode > projects > Open Power Template > tests/Opt/function/replace_1.txt
Testing the replace() function.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{replace('hello, world', 'world', 'universe')}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
hello, universe
Return current item: Open Power Template