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

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
<opt:if test="strip('this   is	a     test') eq 'this is a test'">OK<opt:else>FAIL</opt:else></opt:if>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
OK
Return current item: Open Power Template