Revert "[FIX] mail: livechat escaping"
This reverts commit1c60a631df. The fix was done to conciliate83956d4andff56304f5butff56304f5was forward-ported erroneously and introduced other issues. opw-702410
This commit is contained in:
@@ -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, ' ');
|
||||
});
|
||||
}
|
||||
|
||||
function add_link (node, transform_children) {
|
||||
|
||||
Reference in New Issue
Block a user