Is there a way to correct the input before it is used by trim() or other ??
The input must first be corrected From
[youtube] IHu9-Q30Nuw [/youtube]
texttexttext
texttext
[code] codecodecode codecode codecodecode
codecodecode
codecodecode
[/code]
to
[youtube]IHu9-Q30Nuw[/youtube]
texttexttext
texttext
[code]codecodecode codecode codecodecode
codecodecode
codecodecode[/code]
finally did it :)
input + code
output