posthtml-rename-tags
v1.0.0
Published
Rename HTML tags
Downloads
5
Readme
posthtml-rename-tags
PostHTMLRenameTags is plugin for PostHTML. It replace HTML tags with new tag.
Usage
var posthtml = require('posthtml'),
html = '<div class="wow">OMG</div>';
posthtml([ require('posthtml-rename-tags')({
'.wow' : 'span'
})])
.process(html)
.then(function(result) {
console.log(result);
});
// <span class="wow">OMG</span>