These three lines should be esc_html, not esc_attr.