Eiter I have asked question as
how to remove html tag from string using jquery.
Example: <table> data </table>
data should be return after removing html. This can be done by
Also if user enter invalid html like <table> data
(here no closing tag is given then also should retrun data)
and I received reply by doing
function
functio RemoveHTML(html)
{
return $("<div />").html(html).text();
}
but this is not working. when I am providing only closing tag as input like <\table> it does not remove this html.
Please suggest.