escape ampersands in HTML-safe text (#511)
escape `@example` tag contents (#511)