Hexo helper plugin for encoding html entities.
This plugin uses AllHtmlEntities class of node-html-entities.
$ npm install hexo-helper-htmlentities --saveAdd htmlentities tag in your EJS template:
<%- htmlentities('<>"&©®∆') %>The helper will generate encoded html entities like this:
<>"&©®∆Make sure to use <%- htmlentities() %> and not <%= htmlentities() %> to prevent EJS from escaping the generated string.