Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jnordberg/purgatory
Fast and easy html code cleaning using DOM
https://github.com/jnordberg/purgatory
Last synced: 22 days ago
JSON representation
Fast and easy html code cleaning using DOM
- Host: GitHub
- URL: https://github.com/jnordberg/purgatory
- Owner: jnordberg
- Created: 2009-07-31T19:53:58.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-07-31T20:06:07.000Z (over 15 years ago)
- Last Synced: 2024-10-19T04:04:31.460Z (25 days ago)
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# purgatory
Easy html cleaning
## Example
var crappyHtml = '
';
Yo!
var niceHtml = purgatory(crappyHtml, {
allow: 'h1,h2,h3,h4,h5,h6,p,img[src alt]'
});
// niceHtml = 'Yo!
';## Documentation
Todo