purifier.php 805 B

1234567891011121314151617
  1. <?php
  2. return [
  3. 'encoding' => 'UTF-8',
  4. 'finalize' => true,
  5. 'cachePath' => storage_path('app/purifier'),
  6. 'cacheFileMode' => 0755,
  7. 'settings' => [
  8. 'formdemo_note' => [
  9. 'HTML.Doctype' => 'XHTML 1.0 Transitional',
  10. 'HTML.Allowed' => 'div,b,strong,i,em,a[href|title],ul,ol,ol[start],li,p[style],br,span[style],img[width|height|alt|src],*[style|class],pre,hr,code,h2,h3,h4,h5,h6,blockquote,del,table,thead,tbody,tr,th,td',
  11. 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,margin,width,height,font-family,text-decoration,padding-left,color,background-color,text-align',
  12. 'AutoFormat.AutoParagraph' => true,
  13. 'AutoFormat.RemoveEmpty' => true,
  14. ],
  15. ],
  16. ];