Lib Javascript para fazer strip tags (parecido com a versão em PHP). https://www.npmjs.com/package/striptags Uso var striptags = require('striptags'); var html = '<a href="https://example.com">' + 'lorem ipsum <strong>dolor</strong> <em>sit</em> amet' + '</a>'; striptags(html); striptags(html, '<strong>'); striptags(html, ['a']); striptags(html, [], '\n');