Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js text to html

var textToHTML= function (str) {

	var dom = document.createElement('div');
	dom.innerHTML = str;
	return dom;

};
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #js #text #html
ADD COMMENT
Topic
Name
7+8 =