-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
446 changed files
with
36,500 additions
and
32,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,50 @@ | ||
<?php | ||
// Purifier settings | ||
// http://htmlpurifier.org/live/configdoc/plain.html | ||
$config['settings'] = array( | ||
|
||
// Default setting is used for basic usage including the auto encoding database fields (if the auto_encode_entities property is set on the model which it is by default) | ||
'default' => array( | ||
'HTML.Doctype' => 'XHTML 1.0 Strict', | ||
'HTML.Allowed' => 'div,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src]', | ||
//'HTML.Trusted' => TRUE, // For Javascript... must also add 'script' to HTML.Allowed | ||
//'HTML.SafeIframe' => TRUE, // For iframes | ||
//'URI.SafeIframeRegexp' => '%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%', | ||
'Attr.EnableID' => TRUE, | ||
'Attr.AllowedFrameTargets' => array('_blank'), | ||
//'HTML.Allowed' => 'h1,h2,h3,h4,h5,h6,div[id],b,strong,i,em,a[href|title|target|download|hreflang|type],ul[class],ol,li[class],p[style],br,span[style],img[width|height|alt|src|srcset|sizes]', | ||
//'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,float,margin', | ||
'AutoFormat.AutoParagraph' => false, // This will cause errors if you globally apply this to input being saved to the database so we set it to false. | ||
'AutoFormat.RemoveEmpty' => true, | ||
'AutoFormat.AutoParagraph' => FALSE, // This will cause errors if you globally apply this to input being saved to the database so we set it to false. | ||
'AutoFormat.RemoveEmpty' => TRUE, | ||
'HTML.Doctype' => 'HTML5' | ||
), | ||
|
||
// Can be used with html_purify function (e.g. html_purify($str, 'comment')) | ||
'comment' => array( | ||
'HTML.Doctype' => 'XHTML 1.0 Strict', | ||
'HTML.Allowed' => 'p,a[href|title],abbr[title],acronym[title],b,strong,blockquote[cite],code,em,i,strike', | ||
'HTML.Allowed' => 'p,a[href|title|target],abbr[title],acronym[title],b,strong,blockquote[cite],code,em,i,strike', | ||
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,float,margin', | ||
'AutoFormat.AutoParagraph' => true, | ||
'AutoFormat.Linkify' => true, | ||
'AutoFormat.RemoveEmpty' => true, | ||
'AutoFormat.AutoParagraph' => TRUE, | ||
'AutoFormat.Linkify' => TRUE, | ||
'AutoFormat.RemoveEmpty' => TRUE, | ||
), | ||
|
||
// Can be used with html_purify function (e.g. html_purify($str, 'youtube')) | ||
'youtube' => array( | ||
'HTML.SafeIframe' => 'true', | ||
'URI.SafeIframeRegexp' => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%", | ||
'HTML.SafeIframe' => TRUE, | ||
'URI.SafeIframeRegexp' => '%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%', | ||
) | ||
); | ||
|
||
// This provides a simpler way of adding custom attributes not currently supported by Purifier then by extending the config class | ||
// More information about adding custom attributes can be found here: | ||
// http://htmlpurifier.org/docs/enduser-customize.html | ||
$config['custom_attributes'] = array( | ||
//['a', 'data-toggle', 'CDATA'], // Array format | ||
//'ul|role|CDATA', // String format | ||
); | ||
|
||
// For HTML 5 compatibility issues https://github.com/xemlock/htmlpurifier-html5 | ||
$config['config_class'] = 'HTMLPurifier_HTML5Config'; | ||
|
||
// Determines where to cache the definitions files. | ||
// Set to FALSE if you don't want to cache (like during testing) | ||
$config['cache_path'] = APPPATH.'/cache'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"dummy app","description":"This app is only a dummy for downloading with the option require.","homepage":"https://php-download.com/","type":"project","require":{"xemlock/htmlpurifier-html5":"^0.1.11.0"}} |
119 changes: 119 additions & 0 deletions
119
fuel/modules/fuel/libraries/HTML5Purifier/composer.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.