1.0.0 • Published 7 years ago
posthtml-rename-tags v1.0.0
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>
1.0.0
7 years ago