Provides parsing of the title of the element. htmlparsin2 does not provide item parsing title, style, script in mode xmlMode.
Related issue:
npm i posthtml-parser-titleconst fs = require('fs');
const posthtml = require('posthtml');
const prserTitle = require('posthtml-parser-title');
posthtml()
.use(prserTitle({ /* options */ }))
.process(html/*, options */)
.then(result => fs.writeFileSync('./after.html', result.html));See PostHTML Guidelines and contribution guide.