Echo html content of editor type field
-
Hi guys,
I’m getting the value of a editor type field and want to display it as html:
<?php $options = get_option( 'the_iron', array() ); $about = ( isset( $options['about_control'] ) ) ? $options['about_control'] : ''; ?> <div class="about"><?php echo $about; ?></div>
The problem is the browser doesn’t render the html markup, it is echoing the raw string, i.e.:
I’ve already tried to encoed html strings with
esc_html()
,esc_textarea()
,htmlentities()
, but still not working, this scape functions still display raw string:It’s look like a dumb question but can’t make it work.
I’ll be really appreciated if anyone can help me. Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Echo html content of editor type field’ is closed to new replies.