Remove escaping from linkText
We leverage jQuery’s HTML escaping in `$.html(…)`.
This commit is contained in:
parent
f04c65088b
commit
9d41b86162
4 changed files with 5 additions and 21 deletions
|
@ -2,7 +2,6 @@
|
|||
// jQuery’s 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) || []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue