• Hi was was trying to save html characters through theme option page but was not able to do so … My code in theme option page is

    <input name=”<?php echo $value[‘id’]; ?>” id=”<?php echo $value[‘id’]; ?>” type=”<?php echo $value[‘type’]; ?>” value=”<?php if ( get_settings( $value[‘id’] ) != “”) { echo stripslashes(get_settings( $value[‘id’] )); } else { echo $value[‘default’]; } ?>” />

    when i enter html value like :

    <form action=”https://www.google.com/cse&#8221; id=”cse-search-box” target=”_blank”>
    <div>
    <input type=”hidden” name=”cx” value=”partner-pub-1234567890″ />
    <input type=”hidden” name=”ie” value=”” />
    <input type=”text” name=”q” size=”18″ />
    <input type=”submit” name=”sa” value=”Search” />
    </div>
    </form>

    <script type=”text/javascript” src=”https://www.google.com/coop/cse/brand?form=cse-search-box&lang=en”></script&gt;

    after saving the returned values are all messed up… Please help !!!

  • The topic ‘Saving HTML characters from theme option page’ is closed to new replies.