Thanks powerlord,
but that's not it... I continue to have a problem with > .
If I'm interpreting your line correctly, it would correct situations where a newline is followed by :-( , and the closing bracket of <br> is getting incorrectly incorporated into the translation.
The actual situation I'm describing is that >:-( is not getting translated into "mad" at all, the > is getting ignored and I get the following:
>[]
https://www.ubbdev.com/threads/php/images/icons/frown.gif[/] instead of []
https://www.ubbdev.com/threads/php/images/icons/mad.gif[/]
As soon as I replace the closing bracket with another character, the problem goes away.
Regards,
Max