Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxcnunes/remove-reactid-attributes
Clean up HTML from a generated page with React
https://github.com/maxcnunes/remove-reactid-attributes
Last synced: about 1 month ago
JSON representation
Clean up HTML from a generated page with React
- Host: GitHub
- URL: https://github.com/maxcnunes/remove-reactid-attributes
- Owner: maxcnunes
- Created: 2015-12-12T15:20:28.000Z (about 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-12-12T15:32:38.000Z (about 9 years ago)
- Last Synced: 2024-10-18T07:22:11.962Z (3 months ago)
- Language: HTML
- Homepage: https://maxcnunes.github.io/remove-reactid-attributes
- Size: 1.95 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# remove-reactid-attributes
A simple regex to remove `reactid` attributes.
```js
var REGEX_REMOVE_IDS = /\s?data-reactid="[^"]+"/g;'Any HTML generated with React'.replace(REGEX_REMOVE_IDS, '');
```Available online at https://maxcnunes.github.io/remove-reactid-attributes.