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

  • 相关阅读:
    Java openrasp学习记录(一)
    Java ASM3学习(3)
    Java ASM3学习(2)
    Java Instrumentation插桩技术学习
    Java ASM3学习(1)
    从JDK源码学习HashSet和HashTable
    从JDK源码学习HashMap
    从JDK源码学习ArrayList
    Java XXE漏洞典型场景分析
    CVE-2020-7961 Liferay Portal 复现分析
  • 原文地址:https://www.cnblogs.com/liziqiang/p/3491839.html
Copyright © 2011-2022 走看看