Answers for "js text to html"

0

js text to html

var textToHTML= function (str) {

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

};
Posted by: Guest on November-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language