zoukankan      html  css  js  c++  java
  • KindEditor的htmlTags属性可以过滤不需要的html

    KindEditor的htmlTags属性可以过滤不需要的html

      KE.show({
            id : 'description1',
            items : [
                'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
                'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                'superscript', '|', 'selectall', '-',
                'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold',
                'italic', 'underline', 'strikethrough', 'removeformat', 'link', 'unlink','|','about'
            ],
            filterMode :true,
           htmlTags:{    //以下为不需要过滤过的字符
                font : ['color', 'size', 'face', '.background-color'],
                span : ['style'],  
               
                hr : ['class', '/'],
                br : ['/'],
                'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : ['align', 'style'],
                'strong,b,sub,sup,em,i,u,strike' : []
            }
        });

    转自百度http://hi.baidu.com/jwx_1170/item/d34247e3238bd6226dabb8bb

  • 相关阅读:
    Win10 ntoskrnl.exe蓝屏解决
    Log POST Data in Nginx
    MACOS关闭指定端口
    获取Skype用户IP地址
    禁止windows10带来的三大隐患问题
    各种语言一句话反弹shell
    2015阿里巴巴安全峰会PPT
    HTTPS反向代理嗅探
    利用arpspoof和urlsnarf 进行ARP嗅探
    收集的几个存在漏洞的程序
  • 原文地址:https://www.cnblogs.com/liziqiang/p/3491839.html
Copyright © 2011-2022 走看看