Location: PHPKode > projects > Open Power Template > tests/Opt/function/wordwrap_1.txt
Check the wordwrap() function.

<?xml version="1.0" ?>
{@text is 'This is a very long text that needs to be truncated'}
{u:wordWrap(@text, 17)}
{u:wordWrap(@text, 17, '/')}


This is a very<br />
long text that<br />
needs to be<br />
This is a very/long text that/needs to be/truncated
Return current item: Open Power Template