relax encoding of slashes just for plaintext display, so links can be detected
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user