mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Fix the escapeAttribute function using HTML entities instead of backslash escapes (#6206)
* Fix the escapeAttribute function using HTML entities instead of backslash escapes * Fix tests --------- Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
parent
ba3820965f
commit
c4b039886e
2 changed files with 3 additions and 3 deletions
|
@ -73,5 +73,5 @@ export function escapeHTML (stringParam: string) {
|
|||
export function escapeAttribute (value: string) {
|
||||
if (!value) return ''
|
||||
|
||||
return String(value).replace(/"/g, '\\"')
|
||||
return String(value).replace(/"/g, '"')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue