drop dead code

This commit is contained in:
mappu 2017-02-05 16:14:02 +13:00
parent 2c94713ba0
commit 35994e81c6

View File

@ -34,10 +34,6 @@ var hesc = function(s) {
return s.toString().replace(/[&<>'"]/g, function(s) { return filter[s]; });
};
var nl2br = function(str) { // thanks php.js!
return (str+'').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1<br>$2');
};
var linkify = function(str) {
return str.replace(
/(https?:\/\/[^\s<]+)/g, "<a target='_blank' href=\"$1\">$1</a>"