thunderbird-android/cli/html-cleaner-cli
cketti 64ffed90b4 Create directory structure matching package name
Currently the tooling doesn't work very well when we place files directly into the "kotlin" directory.
2023-04-26 13:35:22 +02:00
..
src/main/kotlin/app/k9mail/cli/html/cleaner Create directory structure matching package name 2023-04-26 13:35:22 +02:00
build.gradle.kts Bump Gradle 8.0.2 -> 8.1.1 and remove suppress dsl scope violation 2023-04-25 17:21:58 +02:00
README.md Change format of Markdown files 2023-02-03 17:28:34 +01:00

Usage: html-cleaner [OPTIONS] INPUT [OUTPUT]

  A tool that modifies HTML to only keep allowed elements and attributes the
  same way that K-9 Mail does.

Options:
  -h, --help  Show this message and exit

Arguments:
  INPUT   HTML input file (needs to be UTF-8 encoded)
  OUTPUT  Output file

You can run this tool using the html-cleaner script in the root directory of this repository. It will compile the application and then run it using the given arguments. This allows you to make modifications to the HTML cleaning code and test the changes right away.