Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js filter out html

function stripHtml(html)
{
   let tmp = document.createElement("DIV");
   tmp.innerHTML = html;
   return tmp.textContent || tmp.innerText || "";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #filter #html
ADD COMMENT
Topic
Name
1+7 =