html-class-prefixer
prefix class names and IDs (optionally) in html strings
how to use
Async
var prefixer = var html = '<div id="container"><span onclick=foo class="sdsd test-texg test"></span></div>';
sync
var prefixer = var html = '<div id="container"><span onclick=foo class="sdsd test-texg test"></span></div>';var result = prefixer// if result is string => successful// if result is object => Error
Notes:
- pull requests are welcome
- better docs to come