aboutsummaryrefslogtreecommitdiff
path: root/lib/FormatAbstract.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/FormatAbstract.php')
-rw-r--r--lib/FormatAbstract.php2
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', '<&zwnj;script', $html); // Disable scripts, but leave them visible.
$html = str_replace('<iframe', '<&zwnj;iframe', $html);