You're in luck. I finally stopped being lazy and made a plugin for this called Tidy Chat. You can install it by adding my repo.json to your Custom Plugin Repositories under Dalamud Settings->Experimental.
Add:
https://raw.githubusercontent.com/NadyaNayme/DalamudPlugins/api5/repo.json
Tidy Chat will then be available as a 3rd party plugin.