Pattern: Use of React's dangerouslySetInnerHTML
Issue: -
This rule finds usages of React's dangerouslySetInnerHTML
. One should not use this API because it possible opens your system up to an XSS attack.
Suppressions can be specified in your tslint.json configuration file like this:
"react-no-dangerous-html": [true,
{
"file": "local/path/to/MyFile.ts",
"method": "render",
"comment": "Usage has been approved by our Security Group on 2015-03-12"
}
]