use the more performant esc_html() instead of wp_kses() when we can

as part of https://github.com/GigaOM/legacy-pro/issues/4461