sanitize static method
Strips everything that could make the printed notes differ from the written ones.
A carriage return rewrites the line on a terminal while surviving into a file, and DEL is invisible in both — so what the user reviews would not be what gets published.
Implementation
static String sanitize(String value) => ColorizeLogger.stripAnsi(value)
.replaceAll(RegExp(r'[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]'), '')
.trim();