fix urls preventing proper closure of bold and color tags
This commit is contained in:
parent
3fc80efd7c
commit
44c20b327d
File diff suppressed because one or more lines are too long
|
@ -41,8 +41,8 @@ function uri(text) {
|
||||||
}
|
}
|
||||||
var split = url.split("<");
|
var split = url.split("<");
|
||||||
url = "<a href='" + split[0].replace(/^www/, "//www") + "' target='_blank'>" + split[0] + "</a>";
|
url = "<a href='" + split[0].replace(/^www/, "//www") + "' target='_blank'>" + split[0] + "</a>";
|
||||||
if (split[1]) {
|
if (split.length > 1) {
|
||||||
url += "<" + split[1];
|
url += "<" + split.slice(1).join("<");
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue