The original text that inspired me.
If a client cannot display a specified type of formatting, the client simply must not display the formatting character as well.
One way some IRC clients represent formatting characters is using an uppercase letter which represents the specific formatting character first letter, with their default foreground and background colors switched. For example, displaying an underline formatting character as U.
ASCII 0x0F ^O
This formatting character discard all formatting. It removes the bold, italics, underline and strikethrough formatting, and sets the foreground and background colors back to the default for the client display. The text following this character will use or display no formatting, until other formatting characters are encountered.
ASCII 0x02 ^B
This formatting character works as a toggle. It enables bold text.
ASCII 0x1D ^]
This formatting character works as a toggle. It enables italicized text.
ASCII 0x1F ^_
This formatting character works as a toggle. It enables underlined text.
ASCII 0x1E ^^
This formatting character works as a toggle. It enables strikethrough’d text.
ASCII 0x16 ^V
This formatting character works as a toggle. When reverse color is enabled, the foreground and background text colors are reversed. An alternative is to highlight the background as in HTML <mark>.
Clients may allow users to prevent all or just specified formatting from displaying. This can help users that are colorblind or are visually impaired, and should be considered by client authors.