Skip to content
Snippets Groups Projects
Commit 88d7e7f6 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

Revert "[FIX] mail: livechat escaping"

This reverts commit 1c60a631.

The fix was done to conciliate 83956d4c and ff56304f but ff56304f was
forward-ported erroneously and introduced other issues.

opw-702410
parent 562f141f
No related branches found
No related tags found
No related merge requests found
......@@ -69,10 +69,10 @@ function linkify(text, attrs) {
attrs = _.map(attrs, function (value, key) {
return key + '="' + _.escape(value) + '"';
}).join(' ');
return text.replace(/ /g, '\u00A0').replace(url_regexp, function (url) {
return text.replace(url_regexp, function (url) {
var href = (!/^(f|ht)tps?:\/\//i.test(url)) ? "http://" + url : url;
return '<a ' + attrs + ' href="' + href + '">' + url + '</a>';
}).replace(/\u00A0/g, '&nbsp;');
});
}
function add_link (node, transform_children) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment