I'm working on the client side of a reviews web site.
the user can insert in the review description, any text including html element text (like : <script> console.log('hello') </script>), and style it with the basic text styles: italic, bold etc...
I wanted to test cross site scripting. so i played with it a little, and when using italic the elements get rendered as the innerText of the html element.
The innerText in the HTML looked like this:
I didn't saw the alert get executed, though.
can the user write text that will become valid HTML with it's events invoked ? if so, how ?
