react-force-graph icon indicating copy to clipboard operation
react-force-graph copied to clipboard

HTML gets stripped from label

Open schobernoise opened this issue 2 years ago • 1 comments

Describe the bug When I try to use html with the nodeLabel property on the ForceGraph3D Component, it gets stripped away. When I use text, the text is the only element that is displayed in the default style of the graph.

To Reproduce Steps to reproduce the behavior: Just load the ForceGraph3D Component and try, for the nodeLabel, using something like "Bold Title". Or something like "

Heading

"

Expected behavior That this html renders correctly, as described in the docs. Node object accessor function or attribute for name (shown in label). Supports plain text or HTML content (except in VR).

schobernoise avatar Oct 24 '23 08:10 schobernoise

@schobernoise could you please make a simple example on https://codesandbox.io/ ? It's not clear how you're assigning the html string to the node label.

vasturiano avatar Nov 09 '23 22:11 vasturiano