Correct raw html replacements

This commit is contained in:
Nicholas Jitkoff 2018-07-11 22:24:53 -07:00
parent 6bcf89f41f
commit 228559a68a

View file

@ -199,7 +199,7 @@ function handleInput(e) {
var rawHTML = text.indexOf("</") > 0;
if (rawHTML) {
text = text.replace(/[\n|\t]+/g, " ").replace(/> +</g, "> <");
text = text.replace(/[ |\t]+/g, " ").replace(/> +</g, "> <");
} else {
text = content.innerHTML;
}