Save html content of a widget textarea

Use wp_kses_post instead! It will keep all the tags allowed in a post, you can also use wp_kses and provide a list of tags and attributes

error code: 523