Trimming whitespace and an option to strip newlines as well from html-to-text.
Trimming newlines first since they may turn into whitespace. Then trim whitespace.