flow-library icon indicating copy to clipboard operation
flow-library copied to clipboard

Fix double-escaped HTML entities in package READMEs

Open dimitrieh opened this issue 3 months ago • 0 comments

Some package READMEs (e.g., node-red-opcua-x) were displaying HTML tags as literal text instead of rendering them. This was caused by HTML entities being stored in escaped form (<img> instead of ) in the database.

The fix unescapes HTML entities before markdown processing to handle cases where HTML tags are stored as <img> instead of . This ensures already-escaped content from storage renders properly while maintaining security through DOMPurify sanitization.

See https://flows.nodered.org/node/node-red-opcua-x

CleanShot 2025-09-03 at 12 03 28@2x

Fixes https://github.com/node-red/flow-library/issues/122

dimitrieh avatar Sep 03 '25 10:09 dimitrieh