Skip to content

HTML entities are not rendered #1969

Closed
Closed
@stla

Description

@stla

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