wang
Well-known member
I working on an add on and I have come across this issue that I cannot seem to find the solution. I am trying to display smilies on a custom page and that works. But when I try to show an excerpt of the message, then all smilies break into html code. They are not parsed correctly anymore.
This is the code that I am using to parse the smilies.
This works fine. But when I add the {xen:helper wordTrim function to show only 100 characters, it is not working anymore.
This is how I am adding it.
I have been trying to find a solutions for hours now, but no luck. Some help would be much appreciated.
This is the code that I am using to parse the smilies.
HTML:
{xen:raw $message.messageParsed}
This works fine. But when I add the {xen:helper wordTrim function to show only 100 characters, it is not working anymore.
This is how I am adding it.
HTML:
{xen:string nl2br, {xen:helper wordTrim, {xen:raw $message.messageParsed}, 100}}
I have been trying to find a solutions for hours now, but no luck. Some help would be much appreciated.