Thursday, July 4, 2019

javascript render html to text with jquery

// create an element where the html content as the string
$('<div/>', {
  html: htmltext
// get text content from element for decoded text  
}).text()

No comments:

Post a Comment