Safe JSX: syntactic sugar over dangerouslySetInnerHTML.
npm install preact-safeThis package is preact version of react-safe. It provides a syntactic sugar over the raw dangerouslySetInnerHTML.
#### Preact
``jsx`
#### Preact Safe
`jsx`
Preact Safe is a thin wrapper over dangerouslySetInnerHTML`. So all the usual concerns about XSS attacks and security in general apply. Check the above link for more information.
preact-safe © Baoshuo, Released under the MIT License.
Authored and maintained by Baoshuo with help from contributors.
> Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo