forked from blallo/rss-bridge
[CNET] Improve script removal
This commit is contained in:
parent
e1b7ffdc81
commit
a9c40e98c4
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class CNETBridge extends BridgeAbstract {
|
||||||
$this->name = 'CNET News';
|
$this->name = 'CNET News';
|
||||||
$this->uri = 'http://www.cnet.com/';
|
$this->uri = 'http://www.cnet.com/';
|
||||||
$this->description = 'Returns the newest articles. <br /> You may specify a topic found in some section URLs, else all topics are selected.';
|
$this->description = 'Returns the newest articles. <br /> You may specify a topic found in some section URLs, else all topics are selected.';
|
||||||
$this->update = '2016-01-23';
|
$this->update = '2016-02-06';
|
||||||
|
|
||||||
$this->parameters[] =
|
$this->parameters[] =
|
||||||
'[
|
'[
|
||||||
|
@ -41,7 +41,7 @@ class CNETBridge extends BridgeAbstract {
|
||||||
function CleanArticle($article_html) {
|
function CleanArticle($article_html) {
|
||||||
$article_html = '<p>'.substr($article_html, strpos($article_html, '<p>') + 3);
|
$article_html = '<p>'.substr($article_html, strpos($article_html, '<p>') + 3);
|
||||||
$article_html = StripWithDelimiters($article_html, '<span class="credit">', '</span>');
|
$article_html = StripWithDelimiters($article_html, '<span class="credit">', '</span>');
|
||||||
$article_html = StripWithDelimiters($article_html, '<script>', '</script>');
|
$article_html = StripWithDelimiters($article_html, '<script', '</script>');
|
||||||
$article_html = StripWithDelimiters($article_html, '<div class="shortcode related-links', '</div>');
|
$article_html = StripWithDelimiters($article_html, '<div class="shortcode related-links', '</div>');
|
||||||
$article_html = StripWithDelimiters($article_html, '<a class="clickToEnlarge">', '</a>');
|
$article_html = StripWithDelimiters($article_html, '<a class="clickToEnlarge">', '</a>');
|
||||||
return $article_html;
|
return $article_html;
|
||||||
|
|
Loading…
Reference in a new issue