Remove escaping from linkText

We leverage jQuery’s HTML escaping in `$.html(…)`.
This commit is contained in:
Daniel Gasienica 2018-04-10 14:57:09 -04:00
parent f04c65088b
commit 9d41b86162
4 changed files with 5 additions and 21 deletions

View file

@ -2,7 +2,6 @@
// jQuerys escaping mechanism:
var linkify = require('linkify-it')()
var escape = require('escape-html')
function createLink (url, text, attrs) {
attrs = attrs || {}
@ -22,7 +21,6 @@ function createLink (url, text, attrs) {
module.exports = function (text, attrs) {
attrs = attrs || {}
text = escape(text)
var matchData = linkify.match(text) || []