Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

HTML entities are not rendered #1969

Copy link
Copy link
Closed
Closed
Copy link
@stla

Description

@stla
Issue body actions

Hello,

In the previous versions, the HTML decimal characters were correctly decoded. In the latest version (1.30.0), they are rendered "as is".

<html>
<head>
    <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
    <div id="tester" style="width:90%;height:250px;"></div>
    <script>
        TESTER = document.getElementById('tester');
        var data = [{
            x: [1, 2, 3, 4, 5],
            y: [1, 2, 4, 8, 16]
        }];
        var layout = {
            margin: {
                t: 0
            },
            plot_bgcolor: "rgb(254, 247, 234)",
            xaxis: {
                title: "&#916;",
                showgrid: false,
                tickvals: [2,3],
                ticktext: ["a", "b"]
            }
        };
        Plotly.plot(TESTER, data, layout);
    </script>
</body>
</html>

ccapture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.