Support » Plugins » Help! Widget showing HTML code as plain text!

  • Resolved tharok

    (@tharok)


    Hi! Im trying to do a widget that shows some info in tabs. Everything is working OK but when I add some HTML (img and formatting tags) the widget shows the code as plain text.

    I show the content of the widget with a simple echo:
    <div id="fragment-1" class="content"><?php echo $aData["35MM"]; ?></div>

    And this is how I save changes on the CP options:

    if( isset( $_POST['cabeceraListenIn_35MM'] ) )
            {
                $aData['35MM'] = stripslashes($_POST['cabeceraListenIn_35MM']);
    
                update_option( 'cabeceraListenIn', $aData );
            }

    (There are 5 tabs (“fields”) but I only include 1 here for the example).
    What Im doing wrong??

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help! Widget showing HTML code as plain text!’ is closed to new replies.