I have a text area in the following
<textarea cols="50" rows="5" id="content">
<a id="link" href="http://www.google.ca"; target="_new">test link</a>
<img src="images/test.jpg" border="1" vspace="2" alt="test">
</textarea>

and I would like to strip out the hyperlink target, and image border,
and get the string of the HTML,
any idea on it?

I try the following, but it only remove the hyperlink in the page, not
the hyperlink in textarea.
        $("a").removeAttr("target");

Can I load the textarea 's content in jquery, then do the select/
remove the attribute and return as string?

Thanks

Reply via email to