Skip to content

Commit

Permalink
Remove code that will never be used (no options)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Oct 11, 2022
1 parent 6f9930b commit f93840d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Models/ContentSanitiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ class ContentSanitiser {
* @return string
*/
public static function getAllowedHTMLTags() : string {
$allowedHTMLTags = "";
if(!empty($options['tagsToKeep']) && is_array($options['tagsToKeep'])) {
// mogrify into something for strip_tags
$allowedHTMLTags = "<" . implode("><", $options['tagsToKeep']) . ">";
}
if($allowedHTMLTags == "") {
$allowedHTMLTags = Config::inst()->get(self::class, 'default_allowed_html_tags');
}
$allowedHTMLTags = Config::inst()->get(self::class, 'default_allowed_html_tags');
if($allowedHTMLTags == "") {
$allowedHTMLTags = "<p>";// disallow all
}
Expand Down

0 comments on commit f93840d

Please sign in to comment.