https://github.com/suhaotian/fuckxss
A react component wrap with DOMPurity
https://github.com/suhaotian/fuckxss
Last synced: 3 months ago
JSON representation
A react component wrap with DOMPurity
- Host: GitHub
- URL: https://github.com/suhaotian/fuckxss
- Owner: suhaotian
- Created: 2016-09-09T07:48:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-09T07:53:23.000Z (over 8 years ago)
- Last Synced: 2025-02-02T22:13:16.328Z (4 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FuckXSS
A react component **fuck XSS** wrap with DOMPurity## Usage
```shell
npm i dompurity --save
``````js
import React from 'react'
import ReactDOM from 'react-dom'import FuckXSS from './index'
class Demo extends React.Component {
render(){
return (
hello moto!'}
/>
)
}
}ReactDOM.render(document.getElementById('demo'), )
```