Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DonghyukJacobJang/27838e3832b5da4493605c876f799eb6 to your computer and use it in GitHub Desktop.
Save DonghyukJacobJang/27838e3832b5da4493605c876f799eb6 to your computer and use it in GitHub Desktop.
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