Skip to content

<canvas> tag rendered instead of escaped in p5.Graphics reference page #1389

@SableRaf

Description

@SableRaf

Most appropriate sections of the p5.js website?

Reference

What is your operating system?

Mac OS

Web browser and version

147.0.7727.138 (Official Build) (arm64)

Actual Behavior

The <canvas> tag in the p5.Graphics.remove() reference text is being rendered as a real canvas element on the page.

Image

Expected Behavior

The reference page should show the code example as text only. The <canvas> element should be escaped, not inserted into the page as an actual canvas.

Steps to reproduce

Visit https://p5js.org/reference/p5/p5.Graphics/ and scroll down to Methods>remove.

Notes

Whoever works on this issue should audit the website for other reference pages suffering from the same issue.

Would you like to work on the issue?

No, I'm just reporting the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions