I want to remove an HTML tag from string for example remove div,p,br,...
I'm trying to do this:
var mystring = "<div><p>this</p><p>is</p><p>my</p><p>text</p><p>sample</p><p> </p><p> </p></div>"
var html3 = $(mystring).text();
but the result is:
"thisismytextsample "
How can do it like : "this is my text sample"