mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
The value of all href attributes is escaped.
This commit is contained in:
parent
6e36b59a59
commit
387dd4a48b
4 changed files with 4 additions and 4 deletions
|
@ -292,7 +292,7 @@ function getHTMLFromAtext(pad, atext)
|
|||
var url = urlData[1];
|
||||
var urlLength = url.length;
|
||||
processNextChars(startIndex - idx);
|
||||
assem.append('<a href="' + url.replace(/\"/g, '"') + '">');
|
||||
assem.append('<a href="' + _escapeHTML(url) + '">');
|
||||
processNextChars(urlLength);
|
||||
assem.append('</a>');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue