
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@blade47/editorjs-html
Advanced tools
A utility to parse editorjs clean data to HTML.
parseStrict() and validate() functions are removed.Browser - Get /.build/edjsHTML.browser.js
NodeJs - Get /.build/edjsHTML.node.js
For Both Browser & Node - Get /.build/edjsHTML.js
npm install editorjs-html
const edjsParser = edjsHTML();
let html = edjsParser.parse(editorjs_clean_data);
console.log(html);
const edjsHTML = require("editorjs-html");
const edjsParser = edjsHTML();
const html = edjsParser.parse(editorjs_clean_data);
console.log(html);
See Releases
const edjsParser = edjsHTML();
const HTML = edjsParser.parse(editorjs_data);
// returns array of html strings per block
console.log(HTML);
const edjsParser = edjsHTML();
const HTML = edjsParser.parse(editorjs_data);
// returns an error
if (HTML instanceof Error) throw HTML;
// in case of success, returns an array of strings
console.log(HTML);
const edjsParser = edjsHTML();
const blockHTML = edjsParser.parseBlock(editorjs_data_block);
// returns string of html for this block
console.log(blockHTML);
const edjsParser = edjsHTML({}, { strict: true });
// returns the list of missing parser functions
const blockHTML = edjsParser.parse(editorjs_data);
console.log(blockHTML);
editorjs-html supports extending and overriding parser functions for blocks.
// Example Custom or Unrecognised Block
{
type: "custom",
data: {
text: "Hello World"
}
}
// Parse this block in editorjs-html
function customParser(block) {
return `<custom-tag> ${block.data.text} </custom-tag>`;
}
const plugins = {
// The keyname must match with the type of block you want to parse with this funcion
custom: customParser,
// ... add more or overwrite
};
const edjsParser = edjsHTML(plugins);
Please add an issue, or open a PR for any bugs, review or suggestions.
parsers/block-name. Check existing functions for suggestions.pnpm test && pnpm build.tests directory. Make sure your tests pass with appropriate coverage.I would love to have your feedback and any suggestions. You can also let me know, if you need support for any more editorjs blocks.
If you find this helpful, consider giving this repository a Star. You can also buy me a coffee here
MIT Public License
FAQs
A utility to parse editorjs clean data to HTML.
We found that @blade47/editorjs-html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.