You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is the Iframe :) It's not closed so everything "inside" is considered to be a part of it. So, it gets removed when the Iframe gets removed.
Background & Context
When purifying a string with html + curly brackets the curly brackets get removed if there is a malicious element, but not if the string is clean.
Configuration:
sanitize(potentiallyDirty, { RETURN_DOM: false });
version: 2.4.3
1.
Input:
output:
<p>abc</p>
expected:
2.
Input:
output:
<p>abc</p>
but script seems to get triggeredexpected:
3.
Input:
output: same as input
expected: works as intended
4.
Input:
output:
expected: works as intended
The text was updated successfully, but these errors were encountered: