Skip to content

HTML entities are not rendered #1969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stla opened this issue Aug 25, 2017 · 1 comment
Closed

HTML entities are not rendered #1969

stla opened this issue Aug 25, 2017 · 1 comment

Comments

@stla
Copy link

stla commented Aug 25, 2017

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

@etpinard
Copy link
Contributor

See #804 and #835 for more info on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants