Escape contents of RichTextWidgets