Support » Plugins » How to stop htmp escaping in widget?

  • Adding a Widget like so:

    class MyNewWidget extends WP_Widget {
    
    	function MyNewWidget() {
    		parent::__construct( false, 'My New Widget Title' );
    	}
    
    	function widget( $args, $instance ) {
    		?>&&&<?php
    	}
    
    	function update( $new_instance, $old_instance ) {
    	}
    
    	function form( $instance ) {
    	}
    }
    
    function myplugin_register_widgets() {
    	register_widget( 'MyNewWidget' );
    }
    
    add_action( 'widgets_init', 'myplugin_register_widgets' );

    What I want it to output is &&&, not & amp;& amp;& amp;
    (need to pass a link to an iframe, it does not work if entities are converted).

    How to remove this filter?

  • The topic ‘How to stop htmp escaping in widget?’ is closed to new replies.