Support html logs in the logger window.

Escape special characters to display them correctly in the logger window.

[Closes #4146]
Merge remote-tracking branch 'ivan/feature/4146_support-html-in-logger-window' into develop