# saningi-html todo ## Current: - [x] basic cli argparsing working (stdin -> sanizization -> stdout) - [x] Modes implemented: - strict - loose - passthrough - [x] profiles in a seperate .py file ## To implement: things not yet implemented in the program NOTE: That things which are in italic text are already implemented! ### url filtering: - *[x] block external URL in strict mode (eg a link with href to some porn site or something)* - *[x] allow relative paths:* *- eg "/path/to/my/awesome/post.html"* - *[x] apply to any of these:* - *a* - *img* - *link href* - *[x] add custom attribute filter function* - *[x] load dotenv (chore for profiles.py) ; do this someday when implementing JSON configs. Or dotenv stuff : PRIO:HIGH* --- ### 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"