[GolemBridge] Strip <script> tags

Golem articles referencing their podcast contain a JavaScript reference
to Podigee. We don't want JS, so we strip it.

Example page: https://www.golem.de/news/podcast-besser-wissen-von-schlangenoel-und-sicherheit-2306-175185.html
This commit is contained in:
Mynacol 2023-06-28 15:51:42 +02:00 committed by Paul
parent 8eabdbe5f8
commit 410ef85618

View file

@ -115,7 +115,7 @@ class GolemBridge extends FeedExpander
// delete known bad elements
foreach (
$article->find('div[id*="adtile"], #job-market, #seminars, iframe,
div.gbox_affiliate, div.toc, .embedcontent') as $bad
div.gbox_affiliate, div.toc, .embedcontent, script') as $bad
) {
$bad->remove();
}