Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LeMondeInformatique] Handle special articles #1039

Merged
merged 1 commit into from
Mar 2, 2019
Merged

[LeMondeInformatique] Handle special articles #1039

merged 1 commit into from
Mar 2, 2019

Conversation

ORelio
Copy link
Contributor

@ORelio ORelio commented Feb 18, 2019

Fix content extraction for special article compiling previous articles (sample)

)
);

//No response header sets the encoding, explicit conversion is needed or subsequent xml_encode() will fail
$item['content'] = utf8_encode($this->cleanArticle($article_html->find('div.col-primary', 0)->innertext));
$item['content'] = utf8_encode($this->cleanArticle($article_html->find('div.col-primary, div.col-sm-9', 0)->innertext));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis has problems with the length of this line. It's probably best to split it into multiple like so:

Suggested change
$item['content'] = utf8_encode($this->cleanArticle($article_html->find('div.col-primary, div.col-sm-9', 0)->innertext));
$content = $article_html->find('div.col-primary, div.col-sm-9', 0);
$item['content'] = utf8_encode($this->cleanArticle($content->innertext));

Fix content extraction for special article compiling previous articles
@ORelio
Copy link
Contributor Author

ORelio commented Feb 24, 2019

Whoops. Fixed!

@logmanoriginal logmanoriginal merged commit d37f0c1 into RSS-Bridge:master Mar 2, 2019
@logmanoriginal
Copy link
Contributor

Merged. Thanks!

infominer33 pushed a commit to web-work-tools/rss-bridge that referenced this pull request Apr 17, 2020
Fix content extraction for special article compiling previous articles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants