mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Correct raw html replacements
This commit is contained in:
parent
6bcf89f41f
commit
228559a68a
1 changed files with 1 additions and 1 deletions
2
edit.js
2
edit.js
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue