Skip to content

text annotations: < in href params breaks href tag #2239

Closed
@endymonium

Description

@endymonium

Hi,

I would like to show a link in chart, unfortunately that links query contains a '<', which leads to plotly not recognizing it as a link: https://jsfiddle.net/2krwamLv/1/

If I encode the '<' manually prior, plotly encodes it again. I looked at the code https://github.com/plotly/plotly.js/blob/master/src/lib/svg_text_utils.js#L214-L221 but I found no easy way around this.

Any ideas?

Thanks,
Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions