[Javascript] Help with JS Replace function
Alan Easton
alaneaston666 at hotmail.com
Sat Jan 15 05:36:46 CST 2005
Hi All,
I am trying to use JS Replce function to solve a problem I have.
I have a string which is made up of HTML tags, such as img tags, table tags,
etc....
Now, what I want to do is search the string and replace the img tags with
valid XHTML tags.
Now that means I want to search for a "<img" tag, once that is found, look
for the closing img tag, which is a ">", and replce the ">" with a "/>".
I hope that makes sense. Does anyone have any idea how I could accomplich
this??
Thanks,
Alan...
More information about the Javascript
mailing list