Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js regex remove html tags

var regex = /(<([^>]+)>)/ig
,   body = "<p>test</p>"
,   result = body.replace(regex, "");

console.log(result);

console.log($('<p>test</p>').text());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #regex #remove #html #tags
ADD COMMENT
Topic
Name
1+5 =