Files
sanigi-html/TODO.md
T

1.2 KiB

saningi-html todo

Current:

  • basic cli argparsing working (stdin -> sanizization -> stdout)
  • Modes implemented:
    • strict
    • loose
    • passthrough
  • profiles in a seperate .py file

To implement:

things not yet implemented in the program

url filtering:

  • block external URL in strict mode (eg a link with href to some porn site or something)
  • allow relative paths:
    • eg "/path/to/my/awesome/post.html"
  • apply to any of these:
    • a
    • img
    • link href
  • add custom attribute filter function

Expland strict mode:

  • Allow these:
    • html, head, body
    • title
    • meta (with restrictions)
    • link (for css only)
    • table, tr, td, th
    • any of crucuial html tags
  • restrict metas (allow):
    • allow only charset, name, content
  • restrict metas (dont allow):
    • base
    • meta http-equiv

passthrough safety

  • add stderr warning for user

Add some logging:

  • debugging with --debug
  • print what was removed, to stderr

Config files:

  • allow custom JSON/YAML/yadayadayada configurations
    • pass in through CLI with flag --config "file.idk"