Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ass

const escaped = escapeHTMLPolicy.createHTML('<img src=x onerror=alert(1)>');
console.log(escaped instanceof TrustedHTML);  // true
el.innerHTML = escaped;  // '&lt;img src=x onerror=alert(1)>'
Source by web.dev #
 
PREVIOUS NEXT
Tagged: #ass
ADD COMMENT
Topic
Name
8+2 =