Allow HTML markup for rich text attributes

Previously, the HTML was unintentionally escaped.

Fixes #1132.