some initial commits, starting what is going to be probably rewritten in C or rust later. idk. its getting late.
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
# 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
|
||||
|
||||
### 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"
|
||||
Reference in New Issue
Block a user