Escape URIs replaced in messages
This commit is contained in:
parent
8fa145b012
commit
f5596ea121
|
@ -410,9 +410,10 @@ $(function() {
|
|||
});
|
||||
text = escape(text);
|
||||
for (var i in urls) {
|
||||
var url = escape(urls[i]);
|
||||
text = text.replace(
|
||||
"{" + i + "}",
|
||||
"<a href='" + urls[i].replace(/^www/, "//www") + "' target='_blank'>" + urls[i] + "</a>"
|
||||
"<a href='" + url.replace(/^www/, "//www") + "' target='_blank'>" + url + "</a>"
|
||||
);
|
||||
}
|
||||
return text;
|
||||
|
|
Loading…
Reference in New Issue