Skip to content

Commit 6cc95f9

Browse files
authored
Update Feed.php
1 parent 9265f13 commit 6cc95f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Block/Rss/Feed.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public function getPostContent($post)
6666
$content = $post->getFilteredContent();
6767
/* Remove iframes */
6868
$content = preg_replace('/<iframe.*?\/iframe>/i', '', $content);
69+
/* Remove script */
70+
$content = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $content);
6971

7072
/* Remove style tags */
7173
$content = preg_replace('/(<[^>]+) style=".*?"/i', '$1', $content);

0 commit comments

Comments
 (0)