diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-28 16:09:34 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-28 18:30:28 -1000 |
commit | 0de03de70ddf0612355e332e7a8ed860555d6b36 (patch) | |
tree | 6a35e44656e310bdfe78d8dc46fd2bda36af1d0e /lib/util.js | |
parent | d10fc1c7fbc410ec0c4773902251255582e33adc (diff) | |
download | patchfoo-0de03de70ddf0612355e332e7a8ed860555d6b36.tar.gz patchfoo-0de03de70ddf0612355e332e7a8ed860555d6b36.zip |
refactor git stuff
- parse commits
- link to git objects with specific message id
- open object before reading it
- cleanup debug things
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js index dbefa14..267df9f 100644 --- a/lib/util.js +++ b/lib/util.js @@ -134,3 +134,9 @@ u.customError = function (name) { return error } } + +u.escapeHTML = function (html) { + return html.toString('utf8') + .replace(/</g, '<') + .replace(/>/g, '>') +} |