mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Remove escaping from linkText
We leverage jQuery’s HTML escaping in `$.html(…)`.
This commit is contained in:
@@ -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) || []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user