j0k3r / php-readability Goto Github PK
View Code? Open in Web Editor NEWA fork of https://bitbucket.org/fivefilters/php-readability
License: Apache License 2.0
A fork of https://bitbucket.org/fivefilters/php-readability
License: Apache License 2.0
Had this one during importing content. Can't get the concerned entry though.
PHP Warning: Couldn't fetch Readability\JSLikeHTMLElement. Node no longer exists in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 50
PHP Notice: Undefined property via __get(): childNodes in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 50 in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 116
PHP Notice: Trying to get property of non-object in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 50
PHP Warning: DOMNode::appendChild(): Couldn't fetch Readability\JSLikeHTMLElement in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/Readability.php on line 364
PHP Warning: DOMElement::removeAttribute(): Couldn't fetch Readability\JSLikeHTMLElement in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/Readability.php on line 365
PHP Warning: Couldn't fetch Readability\JSLikeHTMLElement. Node no longer exists in /var/www/clients/client1/web1/web/vendor/j0k3r/graby/src/Extractor/ContentExtractor.php on line 409
PHP Notice: Undefined property via __get(): textContent in /var/www/clients/client1/web1/web/vendor/j0k3r/graby/src/Extractor/ContentExtractor.php on line 409 in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 116
PHP Warning: Couldn't fetch Readability\JSLikeHTMLElement. Node no longer exists in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 50
PHP Notice: Undefined property via __get(): childNodes in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 50 in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 116
PHP Notice: Trying to get property of non-object in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 50
PHP Warning: DOMNode::appendChild(): Couldn't fetch Readability\JSLikeHTMLElement in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/Readability.php on line 364
PHP Warning: DOMElement::removeAttribute(): Couldn't fetch Readability\JSLikeHTMLElement in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/Readability.php on line 365
PHP Warning: Couldn't fetch Readability\JSLikeHTMLElement. Node no longer exists in /var/www/clients/client1/web1/web/vendor/j0k3r/graby/src/Extractor/ContentExtractor.php on line 409
PHP Notice: Undefined property via __get(): textContent in /var/www/clients/client1/web1/web/vendor/j0k3r/graby/src/Extractor/ContentExtractor.php on line 409 in /var/www/clients/client1/web1/web/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php on line 116
Some BC breaking suggestions:
Hello,
How can i get Excerpt, image and Author?
with fivefilters/php-readability i can get all information like this
"title" => $readability->getTitle(),
"content" => $readability->getContent(),
"excerpt" => $readability->getExcerpt(),
"lead_image_url" => $readability->getImage(),
"author" => $readability->getAuthor(),
Trying to parse https://www.youngmoney.co/p/defense-fed
with Graby's fetchContent
results in an exception:
https://flareapp.io/share/yPa9qqKP (You need to expand the vendor frames to see the stack trace)
It looks like the error occures here: https://github.com/j0k3r/php-readability/blob/master/src/Readability.php#L1183
Not sure if this is a problem with the site or Graby or this package.
Problem 1
- Root composer.json requires j0k3r/php-readability ^2.0 -> satisfiable by j0k3r/php-readability[2.0.0, 2.0.1].
- j0k3r/php-readability[2.0.0, ..., 2.0.1] require psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 3.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
It only seems to be problem for php-html5lib
tests but the warning is still annoying:
Deprecation Notice: Class HTML5Lib\Tests\TokenizerHarness located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TokenizerTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class HTML5Lib\Tests\PositionTestableTokenizer located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TokenizerPositionTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class HTML5Lib\Tests\TokenizerTestOfPosition located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TokenizerPositionTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class HTML5Lib\Tests\TreeBuilderHarness located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TreeBuilderTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Perhaps we should try to find a maintained alternative.
Since 00f622e, constructor runs loadHTML
again so we cannot attach logger before that. And loadHTML
is private so we cannot re-run it after logger has been attached by setLogger
.
(Trying to debug why div img + noscript img
is turned into (p img) + noscript img
preventing the wordpress noscript
removal from triggering for some users but I cannot reproduce it.)
Related to issue wallabag/wallabag#3730
Test code (or test link for fetching):
<!DOCTYPE html>
<html class='' dir='ltr' lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns:og='http://opengraphprotocol.org/schema/' xmlns='http://www.w3.org/TR/html5'>
<head>
<title>Buuuuug</title>
</head>
<body>
<h2 class="aligncenter"></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
<h2 class="aligncenter">An Inauspicious Start</h2>
<p>Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. </p>
</body>
</html>
Using graby (and thus php-readability) on this code will give:
<h2 class="aligncenter">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
An Inauspicious Start</h2>
<p>Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. </p>
We would expect:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<h2 class ="aligncenter">An Inauspicious Start</h2>
<p>Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. </p>
I tried to find the regex or DOM manipulation causing this, unfortunately to no avail.
From @anarcat on February 1, 2017 17:16
This article about Richard Stallman is really weird to read on parsed content, because all the "dotted underline" words are just removed from the output. I reproduced this on the test site.
The last sentence of the second paragraph should read like:
If you’ve heard of open source (free software’s practice sans its moral stance) or Linux (really GNU, plus a program called Linux), you can thank Stallman.
(Emphasis on the removed word added.)
Instead it is:
If you’ve heard of open source (free software’s practice sans its stance) or Linux (really GNU, plus a program called Linux), you can thank Stallman.
Thanks!
Copied from original issue: fivefilters/ftr-site-config#251
do you have idea why the get content not working in cronjob?
It looks like Readability removes headlines like this:
<h2 class="header-with-anchor-widget">1. A mental model of the software engineering cycle
<div id="§a-mental-model-of-the-software-engineering-cycle" class="header-anchor-widget offset-top">
<div class="header-anchor-widget-button-container">
<div class="header-anchor-widget-button" href="https://newsletter.pragmaticengineer.com/i/136465585/a-mental-model-of-the-software-engineering-cycle"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="header-anchor-widget-icon"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></div>
</div>
</div>
</h2>
This is a valid (as in, we want to preserve it as content) headline, it just contains an extra <div>
.
It seems to be removed in
php-readability/src/Readability.php
Line 900 in 38870cd
Is there a way to control this behaviour? Ideally, Readability would keep the headline but remove the extra div.
Taken from this article, looks like all substack publications use the same markup.
How to get image for redabilty.
Consider ignoring nodes for which textContent
is emtpy (""
) before calculating the scores etc.
When using the url: https://www.digitalocean.com/community/tutorials/how-to-secure-your-redis-installation-on-ubuntu-14-04 , I am getting the following error in the result
I think the issue with closing the pre
tag. It is opening but it is closing after only nesting everything. Also the code
tag is switched with pre tag
Hi!
I am trying to run a dev instance of wallabag but I can't import any article, due to an error in Readability (wallabag error: [2019-05-08 19:11:22] app.ERROR: Error while saving an entry {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ContextErrorException(code: 0): Notice: A non well formed numeric value encountered at /home/nicofrand/www/wallabag/vendor/j0k3r/php-readability/src/Readability.php:1118)","entry":"[object] (Wallabag\\CoreBundle\\Entity\\Entry: {})"} []
).
Example of a link: https://blog.eleven-labs.com/fr/po-vs-pm-like-batman-vs-superman/
The error in Readability:
Symfony\Component\Debug\Exception\ContextErrorException: Notice: A non well formed numeric value encountered in /home/nicofrand/www/wallabag/vendor/j0k3r/php-readability/src/Readability.php on line 1118
Line 1118 https://github.com/j0k3r/php-readability/blob/master/src/Readability.php#L1118 the values are:
$grandParentNode->getAttributeNode('readability')->value
= '4,0909090909091'
.
$contentScore
= 1,3636363636364
.
That might come from my config since I have no issue with a prod version of wallabag on my server but I can't find why this happens… Would you have an idea?
Thanks in advance!
Hi there,
I tried to get full content using the below page URL but I can't able to do it when the article has shorter content.
I have checked the library code and see the MIN_ARTICLE_LENGTH
logical condition.
Here - https://github.com/j0k3r/php-readability/blob/master/src/Readability.php#L1311
Page URL:
The code says that shorten content should have a minimum 200 length. Could you help to solve this issue?
Thanks
PHP Notice: Trying to get property of non-object in src/Readability.php on line 768
I don't have much insights. This is when I run the wallabag Redis importer. I'll try to see which html document.
Hi, I have many days using this code to extract the content from webs (a lot of them) but today I found one with one problem.
The URL is https://www.searchmetrics.com/glossary/ranking-factor/
Readability extracts the text from the middle and ignores all the text over, It extracts on this text "In the graph, four example correlations and the respective curves are shown."
This specific line gets the largest score, so, I am not sure what can I do ¿Any idea?
Thank you very much.
Hi there,
I don't get why we are cleaning the title content before the :
character. It could be legit content.
php-readability/src/Readability.php
Line 850 in 9a490fa
DOMDocumentFragment::appendXML(): Entity: line 3: parser error : Entity 'nbsp' not defined;
The original html-document does not contain "nbsp", but the exception was generated.
Example, DTD:
In src/Readability.php
, you use HTML5_Parser
but this class isn't found.
You can find it here: https://github.com/silverstripe/silverstripe-html5/tree/master/thirdparty/html5lib/HTML5
Or in wallabag 1.x zip.
Hi,
I run archlinux on atom d525 with PHP 5.6.15, extra/php-tidy 5.6.15-2 installed and detected in active php version modules, activated in php.ini. Other modules works fine on others composer install, but not tidy...
I want to install wallabag-2.x and it would be great I can install php-readability...
Thx for all
Hi!
I use wallabag, that uses j0k3r/php-readability 1.2.10.
On some websites, I found out that some Javascript code snippets are "polluting" the text context extracted.
This happens for example on this page: https://lesprosdelapetiteenfance.fr/eveil-activites/ateliers-pedagogiques-et-fiches-activites/maquillage-et-pate-modeler-5-recettes-bio
Some JavaScript inline code seems to generate <div>
elements (for example on line 1376),
and PHP Readability ends up extracting some of this JS code:
$('.sib_list_row').append('<div class="message_area" style="background-color: #f2dede;border:1px solid #ebccd1; color: #a94442;margin-top: 5px;"><button type="button" class="close">x</button>' + emptyError + '</div>');
The resulting article looks like this:
Inscrivez-vous à la newsletter
'); } }else { var input = theForm.find('input[name="' + required[i] + '"]'); var inputType = input.attr('type'); if (inputType == 'text' || inputType == 'number') { if (input.val() == "" || input.val() == emptyError) { input.closest('.row').addClass("needsfilled"); input.closest('.row').append('
' + emptyError + '
Could you please help regarding this? How can this be fixed?
Hi,
I have tried my best to adapt the given code in order to keep urls into the document and neither put them into footnotes nor removing them.
Is there anybody that can lead my feet doing that?
Thank you :)
Hi,
I am here after trying to install https://github.com/wallabag/wallabag/tree/v2 . Noticed I have not installed the php extension tidy.
Do you think it is still necessary to install tidy or can we move to use something like https://packagist.org/packages/ezyang/htmlpurifier .
I have not used tidy before to say the good things about it.
Interested to hear what you think.
Thank you
While running an import in wallabag that fetched missing content.
URL : https://geektimes.ru/post/164419/
[2017-05-16 13:53:26] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +35 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +12 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +53 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +95 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +2 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +95 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +29 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +17 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +53 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +6 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +95 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +41 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +29 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +34 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +27 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +95 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +74 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +46 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +100 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Entity 'plus' not defined {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): +66 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocumentFragment::appendXML(): ^ {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":60})"} []
[2017-05-16 13:53:27] php.DEBUG: Warning: DOMDocument::loadHTML(): Tag htmlfragment invalid in Entity, line: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/tcit/dev/wallabag/vendor/j0k3r/php-readability/src/JSLikeHTMLElement.php\",\"line\":75})"} []
I'm trying to convert articles to readable blobs of text, however I would like for <br>
and <p>
tags to be converted as newlines, currently the package returns one big inline string of text. Is this possible at the moment?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.