Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get plain text from html string

import * as jsdom from "jsdom";

const html = "<h1>Testing<h1>";
const text = new jsdom.JSDOM(html).window.document.textContent;

console.log(text);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #plain #text #html #string
ADD COMMENT
Topic
Name
9+3 =