Skip to content

Sanitize output #79

@dpc

Description

@dpc

I'd like to use djot (jotdown) as a format for content formatting in a web application. For that I need to sanitize the rendering, to prevent users from injecting raw html or anything else that I don't want.

Some initial investigation suggests that I wamt to

  • intercept RawInline and BlockInline and filter out/sanitize
  • intercept Image if I want to prevent linking to arbitrary pictures, possibly Link if I don't want arbitrary links

If there's anything that I should take into consideration, I would appreciate pointing it out. Thank you!

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