Commit Graph
1 Commits
Author SHA1 Message Date
Perfect Johny 05804c1079 Show node definitions as text in the node preview (#3434)
The preview that the Custom Nodes Manager shows over a node name is
built from ComfyUI's node definitions (/object_info) and inserted with
innerHTML. The name, the input and output names, the default values
and the description went in as they are, so text between angle
brackets was dropped from the preview and markup in a definition was
rendered.

- Escape the eight values where createNodePreview inserts them; the
  line break of a multi-line default is still shown as <br>
- Add tests that run the shipped createNodePreview in node with a
  definition that carries markup, and one that carries text between
  angle brackets, in every value the preview shows
- Add a CHANGELOG entry

The same change for manager-v4 is #3534.
2026-11-15 15:18:55 +09:00