aboutsummaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-31 15:17:28 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-31 23:38:04 -1000
commitf45c79b0d6eba673d537ba86b9cd8797666ad4b7 (patch)
tree6b51e14c1eae3e511dcecf1df4aa3ada8a95723a /lib/util.js
parentd4be33a6f00bd990b75c0ba234a520c272090028 (diff)
downloadpatchfoo-f45c79b0d6eba673d537ba86b9cd8797666ad4b7.tar.gz
patchfoo-f45c79b0d6eba673d537ba86b9cd8797666ad4b7.zip
Add drafts feature
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js
index c01d96c..52c608b 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -169,6 +169,7 @@ u.escapeHTML = function (html) {
.replace(/"/g, '&quot;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
+ .replace(/\n/g, '&#x0a;')
}
u.unescapeHTML = function (text) {