Skip to content

Html inside of code blocks gets rendered as html #10

@Jomy10

Description

@Jomy10

Problem

Using the HTMLGenerator, if there is html inside of code blocks, it will be rendered as html instead of as text. This causes undefined behaviour.

Example: here, a css stylesheet is being rendered, messing up the webpage. (see highlighted line)
Schermafbeelding 2022-02-04 om 02 12 28

Proposed solution

Replace all < with &lt; inside of code blocks and > with &gt;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions