Skip to content

Pegdown escapes HTML in code blocks, but not in other output #236

@jwgmeligmeyling

Description

@jwgmeligmeyling

Pegdown escapes HTML in code blocks, but not in other output. If I want to protect myself against XSS, I have to escape the input for pegdown manually, this however results in code blocks being escaped twice, resulting in wrong output.

I am looking for an option to either disable escaping for code blocks - and doing escaping myself, or an option to enable HTML escaping for all elements (which I think should have been default).

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