Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- >> Please help with a simple PHP script
March 17, 2005, 3:51 pm
rate this thread
I am sure this will be a no-brainer for a lot of you. Put quite simply,
I am looking for a way do a search within a string for all of my HTML
tags. Once it finds those HTML tags, I will like to wrap some code
around it. For example:
<p /> ----> <![CDATA[ <p /> ]]>
<b /> ----> <![CDATA[ <b /> ]]>
<a href="someurl.html"> ----> <![CDATA[ <a href="someurl.html"> ]]>
How can I do this? Since someurl.html will be dynamic, I cannot use the
str_replace function. Thank you for your help.