mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00: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
@ -115,7 +115,7 @@ class GolemBridge extends FeedExpander
|
|||||||
// delete known bad elements
|
// delete known bad elements
|
||||||
foreach (
|
foreach (
|
||||||
$article->find('div[id*="adtile"], #job-market, #seminars, iframe,
|
$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();
|
$bad->remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user