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!
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
RawInlineandBlockInlineand filter out/sanitizeImageif I want to prevent linking to arbitrary pictures, possiblyLinkif I don't want arbitrary linksIf there's anything that I should take into consideration, I would appreciate pointing it out. Thank you!