There are several issues here:
echo esc_attr_e
should be justesc_attr_e
, the_e
means it already echo’sesc_attr_e
is not just an escaping function, it’s a localisation API, it’s shorthand forecho esc_attr( __(
esc_attr
strips out HTML, it’s intended for use inside HTML attributes where HTML tags are not allowed.- You must never pass variables and dynamic values into localisation functions
If you want to escape a string that contains basic HTML such as paragraphs etc, use wp_kses_post
, e.g.:
echo wp_kses_post( $redux_demo['editor-text-header-left'] );