Allow HTML tags into the ENTRY field from class-widget-service.php

Hi guys,

I would like to know how can I allow the entry field from the widget class-widget-service.php to allow HTML tags.

This is the piece of code related:

<p>
<label for="<?php echo $this->get_field_id( 'entry' ); ?>"><?php _e( 'Entry:', 'illdy' ); ?></label>

<textarea class="widefat" rows="16" cols="20" id="<?php echo $this->get_field_id( 'entry' ); ?>" name="<?php echo $this->get_field_name( 'entry' ); ?>"><?php echo esc_textarea( $entry ); ?></textarea></p>
</p>

Does anyone know how to allow Entry to accept HTML tags (such as <br> and stuff like that).

Thanks!

Hello Alberto,

Unfortunately, such behaviour is a little more difficult to achieve as you’ll need to track down multiple files.

Have you tried using a Text Widget instead? You can add HTML syntax and format the content as you wish via the text widget.

Let me know if this did the trick for you, otherwise I will do my best to guide you around the core files to remove the esc_html.

Regards