From 0de03de70ddf0612355e332e7a8ed860555d6b36 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 28 May 2017 16:09:34 -1000 Subject: refactor git stuff - parse commits - link to git objects with specific message id - open object before reading it - cleanup debug things --- lib/util.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/util.js') 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, '>') +} -- cgit v1.2.3