Obtenga solo cadena de HTML Descripción JavaScript

// get only stringText from htmlText
const description_html = "<div>  all html tag  </div>"
var description_string = description_html.replace(/<\/?[^>]+(>|$)/g, "");
CodePadding