diff --git a/edit.js b/edit.js index 9fb7dc3..e0e48b1 100644 --- a/edit.js +++ b/edit.js @@ -199,7 +199,7 @@ function handleInput(e) { var rawHTML = text.indexOf(" 0; if (rawHTML) { - text = text.replace(/[\n|\t]+/g, " ").replace(/> + <"); + text = text.replace(/[ |\t]+/g, " ").replace(/> + <"); } else { text = content.innerHTML; }