I'm doing element.textContent = unescapedData
to put unescaped user input on a website. Is there any way for an attacker to do something bad using this?
Also, is there any way for an attacker to affect the page outside of element
(meaning outside the 30rem
by 3rem
box) if it has the following css?
max-width: 30rem;
max-height: 3rem;
overflow: hidden;
I've thought about using weird or invalid Unicode characters, but couldn't find any information on how to accomplish this.