mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-23 23:11:04 -04:00
relax encoding of slashes just for plaintext display, so links can be detected
This commit is contained in:
parent
d7fd6667fd
commit
3996f82404
3 changed files with 3 additions and 3 deletions
|
@ -2424,7 +2424,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
|
||||
// escape HTML entities, link URLs, sanitize
|
||||
const escapedLinkedText = Helper.urls2links(
|
||||
Helper.htmlEntities(text)
|
||||
Helper.htmlEntities(text).split('/').join('/')
|
||||
),
|
||||
sanitizedLinkedText = DOMPurify.sanitize(escapedLinkedText);
|
||||
$plainText.html(sanitizedLinkedText);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue