package
Rename HTML tags
npm install posthtml-rename-tagsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
PostHTMLRenameTags is plugin for PostHTML. It replace HTML tags with new tag.
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>Estimated unpacked size across 2 packages.
8.3 kB
Includes dependencies.