diff options
Diffstat (limited to 'lib/FormatAbstract.php')
-rw-r--r-- | lib/FormatAbstract.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/FormatAbstract.php b/lib/FormatAbstract.php index 5514b0b5..768b0157 100644 --- a/lib/FormatAbstract.php +++ b/lib/FormatAbstract.php @@ -130,7 +130,7 @@ abstract class FormatAbstract implements FormatInterface { * @todo Maybe switch to http://htmlpurifier.org/ * @todo Maybe switch to http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php */ - protected function sanitizeHtml($html) + protected function sanitizeHtml(string $html): string { $html = str_replace('<script', '<‌script', $html); // Disable scripts, but leave them visible. $html = str_replace('<iframe', '<‌iframe', $html); |