doumianfeng6979 2018-07-10 09:16
浏览 44

html代码从wordpress后端删除

i'm developing a gateway processor for a wordpress plugin and i'm stuck. although the plugin has the functionality i want, i'm facing a very wierd problem. i declare a textarea which is meant to take some html code in the backend and echo it on the frontend. Some of the html code gets stripped out when i click save button, this code includes and tags among others. i declare the code like:

 $this->fields['description'] = array(   
'type'        => 'wp_textarea'
, 'default'     => ''
, 'placeholder' => ''
, 'title'       => __('Description', 'booking')
, 'description' => __( 't page.' ,'booking')
, 'description_tag' => ''
, 'group'       => 'general'
, 'tr_class'    => ''
, 'rows'        => 30
, 'show_in_2_cols' => true
, 'css'         => 'width:100%'                                 
, 'teeny'             => true
, 'show_visual_tabs'  => true
, 'default_editor' => 'tinymce'                     
, 'drag_drop_upload'  => false 
); 

i have also tried changing default_editor to html and type to textarea but with the same results. could someone please help? i have burned my mind on this one.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
    • ¥15 IAR程序莫名变量多重定义
    • ¥15 (标签-UDP|关键词-client)
    • ¥15 关于库卡officelite无法与虚拟机通讯的问题
    • ¥15 目标检测项目无法读取视频
    • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
    • ¥100 求采集电商背景音乐的方法
    • ¥15 数学建模竞赛求指导帮助
    • ¥15 STM32控制MAX7219问题求解答
    • ¥20 在本地部署CHATRWKV时遇到了AttributeError: 'str' object has no attribute 'requires_grad'