Smiley Replace within CDATA of an HTML-String

Posted by michaelm on Stack Overflow See other posts from Stack Overflow or by michaelm
Published on 2010-05-24T09:12:07Z Indexed on 2010/06/03 5:34 UTC
Read the original article Hit count: 281

Filed under:
|

Hello,

i have got a simple problem :( I need to replace text smilies with the according smiley-image. ok.. thats not really complex, but now i have to replace only smilie appereances outside of HTML Tags. short examplae:

Text:

Thats a good example :/ .. with a <a href="http://www.foobar.com">link</a> inside.

i want to replace ":/" with the image of this smiley...

ok, how to do that the best way?

© Stack Overflow or respective owner

Related posts about php

Related posts about replace