1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-02 06:40:23 +02:00

[Format] Change scope of 'sanitizeHtml' to protected

This commit is contained in:
logmanoriginal
2016-08-29 20:51:11 +02:00
parent f49fca516d
commit 8d050c233b

View File

@@ -98,7 +98,7 @@ abstract class FormatAbstract implements FormatInterface{
* Maybe we'll switch to http://htmlpurifier.org/ * Maybe we'll switch to http://htmlpurifier.org/
* or http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php * or http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php
*/ */
public function sanitizeHtml($html) protected function sanitizeHtml($html)
{ {
$html = str_replace('<script','<&zwnj;script',$html); // Disable scripts, but leave them visible. $html = str_replace('<script','<&zwnj;script',$html); // Disable scripts, but leave them visible.
$html = str_replace('<iframe','<&zwnj;iframe',$html); $html = str_replace('<iframe','<&zwnj;iframe',$html);