Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react html symbol code

const strToDecode = 'Environment & Forest';
const parser = new DOMParser();
const decodedString = parser.parseFromString(`<!doctype html><body>${strToDecode}`, 'text/html').body.textContent;
console.log(decodedString);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #html #symbol #code
ADD COMMENT
Topic
Name
6+7 =