Created
August 10, 2018 02:44
-
-
Save DonghyukJacobJang/27838e3832b5da4493605c876f799eb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyComponent() { | |
const title = response.from.backend.title; | |
return <div dangerouslySetInnerHTML={{__html: title}} />; // BAD - potential XSS attack could happened | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment