Good morning. I am racking my brains over what seems like should be a
simple question. I have a string that contains text and html.
Basically, I would like to grab the HTML tags from the string and wrap
some comment tags around it. Does anyone know how I would do this? I
was thinking about using the str_replace function, but this won't work
for certain html tags, such as <A href=#"> since the "#" won't be known
beforehand. Maybe a simple regular expression? Thank you so much for
your help!
Gene
simple question. I have a string that contains text and html.
Basically, I would like to grab the HTML tags from the string and wrap
some comment tags around it. Does anyone know how I would do this? I
was thinking about using the str_replace function, but this won't work
for certain html tags, such as <A href=#"> since the "#" won't be known
beforehand. Maybe a simple regular expression? Thank you so much for
your help!
Gene
Comment