Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get only string from html description javascript

// get only stringText from htmlText
const description_html = "<div>  all html tag  </div>"
var description_string = description_html.replace(/</?[^>]+(>|$)/g, "");
 
PREVIOUS NEXT
Tagged: #string #html #description #javascript
ADD COMMENT
Topic
Name
2+1 =