mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[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:
parent
8eabdbe5f8
commit
410ef85618
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue