# 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 - Ok you see, I am too lazy to write the stuff which I completed here, so i just italizized it. ## 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: - *[x] Allow these:* - *html, head, body* - *title* - *meta (with restrictions)* - *link (for css only)* - *table, tr, td, th* - *any of crucuial html tags* - [x] *restrict metas (allow):* - *allow only charset, name, content* - [ ] restrict metas (dont allow): - base - meta http-equiv --- ### passthrough safety - *[x] 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" ## Fixes: ## Content of tag staying after removal of tag When running strict/loose: ``` (venv) rattatwinko@kubuntu:~/Documents/sanigi-html$ echo "