I'd like to display messages in my web-based UI for, without going into much detail as to why, remote trouble-shooting purposes over the phone. Some messages it is important to have both a carriage return and line feed, while others should just have one or the other.
Notepad++ has a Show All Characters function
that does this, and I'd like to implement something similar into my web UI.
I'd love for something that looks like
to be able to looks like
Problem is, I can't find any information on how to do this online. The best I can find is how to escape special characters or how to implement the tag, which isn't what I'm trying to do here.