Simounet
63cd304dba
Media class added to positive candidates
...
Fix Mediapart images.
8 years ago
Jérémy Benoist
43939f88d9
Merge pull request #37 from Kdecherf/footnotes-candidates
...
Keep elements with 'footnote' as possible candidates
9 years ago
Kevin Decherf
4c68cc9f09
Keep elements with 'footnote' as possible candidates
...
Should fix https://github.com/wallabag/wallabag/issues/3100
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
9 years ago
Jérémy Benoist
276684ab6d
Merge pull request #35 from j0k3r/travis
...
Fix PHP 5.3 builds
9 years ago
Jeremy Benoist
163058aeff
Fix PHP 5.3 builds
9 years ago
Jérémy Benoist
6427dd7371
Merge pull request #32 from j0k3r/html5
...
Add missing HTML5 class
9 years ago
Jeremy Benoist
613a63c062
CS
9 years ago
Jeremy Benoist
05089bbd03
Add missing HTML5 class
9 years ago
Jérémy Benoist
5ac82f3c87
Merge pull request #30 from j0k3r/avoid-php-warning
...
Avoid php warning
9 years ago
Jeremy Benoist
85fb92a042
Fix tests
9 years ago
Jeremy Benoist
f2a43b476c
Avoid PHP Warning
...
This isn't the best solution but the previous one using `@` wasn't really better.
Appending a string into a fragment might generate some warning if the string contains bad entity.
For example `+`.
9 years ago
Jérémy Benoist
6def743902
Merge pull request #27 from jtojnar/ext-mbstring
...
Add mbstring as a dependency
9 years ago
Jan Tojnar
8a44926392
Add mbstring as a dependency
9 years ago
Jérémy Benoist
8c7740f073
Merge pull request #26 from j0k3r/fix-phpunit-7.x
...
Fix PHPUnit error on PHP 7+
9 years ago
Jeremy Benoist
6a4720c951
Fix PHPUnit error on PHP 7+
9 years ago
Jérémy Benoist
7a9a82b543
Update README.md
9 years ago
Jérémy Benoist
8a91d36294
Merge pull request #25 from jtojnar/patch-1
...
Add tidy to suggested dependenies
9 years ago
Jan Tojnar
669adfb20f
Add tidy to suggested dependenies
9 years ago
Jeremy Benoist
445b889efb
Merge pull request #24 from j0k3r/links
...
Don't be to hard on 'links' attribute
9 years ago
Jeremy Benoist
8b1c3f147d
Don't be to hard on 'links' attribute
9 years ago
Jeremy Benoist
a505a13d0c
Merge pull request #22 from jtojnar/master
...
Depend on psr/log instead of Monolog
9 years ago
Jan Tojnar
9fe0d07805
Depend on psr/log instead of Monolog
9 years ago
Jeremy Benoist
e5d31b93d1
Merge pull request #21 from j0k3r/childnode-goes-null
...
Avoid childnode becoming null to generate a warning
9 years ago
Jeremy Benoist
6e24a5d731
Add PHP 7.1 to Travis & fix php-cs-fixer
...
I don't want to update the .php_cs to be compatible with php-cs-fixer 2.
It works great like that atm.
9 years ago
Jeremy Benoist
ff754b80bd
Avoid childnode becoming null to generate a warning
9 years ago
Jeremy Benoist
ade850534c
Merge pull request #18 from j0k3r/tool
...
Don’t be too agressive
10 years ago
Jeremy Benoist
d97bece7c5
Don’t be too agressive
...
Some links got a “tooltip-link” and shouldn’t be removed by php-readability because they are usefull to the content
10 years ago
Jeremy Benoist
47ce4fb7f9
Merge pull request #16 from j0k3r/info
...
“info” is too agressive in unlikelyCandidates
10 years ago
Jeremy Benoist
3de4e918b4
Convert header & section to p
...
And took `pre` element in score
10 years ago
Jeremy Benoist
5182d6cb11
“info” is too agressive in unlikelyCandidates
...
Some contents have a `infocontent` node (ot sth different) and they are real content.
Using only `info` as regex is too agressive and remove legitimate content.
Matching the whole word `info` (or `infos`) should be a better choice
10 years ago
Jeremy Benoist
fb9810a827
Merge pull request #15 from j0k3r/cs
...
Enable php-cs-fixer
10 years ago
Jeremy Benoist
22aa4c3b31
Fix composer & TLS
10 years ago
Jeremy Benoist
2ef400bf73
Enable php-cs-fixer
10 years ago
Jeremy Benoist
dec4514c00
Merge pull request #14 from j0k3r/revert-bc
...
Revert BC changes
10 years ago
Jeremy Benoist
00f622e9b7
Revert BC changes
...
- avoid method signature update
- revert moving logic out of the constructor
10 years ago
Jeremy Benoist
7b47e2f1de
Merge pull request #13 from j0k3r/monolog
...
Use Monolog instead of custom solution
10 years ago
Jeremy Benoist
c756ec067e
Fix tests
...
`getInnerText` might receive a null DOMElement if the xpath or query return no element.
10 years ago
Jeremy Benoist
8ab7d76cd5
Use Monolog instead of custom solution
...
Remove that ugly `openlog` & `syslog`
10 years ago
Jeremy Benoist
149a333b40
Remove addPreFilter
...
Pre filters are used in the __construct so adding more pre filters once the object is instantiated is useless.
10 years ago
Jeremy Benoist
209c404d7b
Fix instanceof DOMElement
...
We previously checked `instanceof DOMElement` which was wrong since we
are in the namespace class, the class `Readability\DOMElement` does not
exists.
10 years ago
Jeremy Benoist
6e3f2e8c0b
Merge pull request #12 from j0k3r/travis-coveralls
...
Switch to Coveralls
10 years ago
Jeremy Benoist
8cbecd7e99
Use cache for Travis
...
And also avoid Github api limit
10 years ago
Jeremy Benoist
438699ab15
Disable html coverage
...
Required only on local.
10 years ago
Jeremy Benoist
ea7a62d352
Switch to Coveralls
10 years ago
Jeremy Benoist
9181fd1a2c
Merge pull request #11 from j0k3r/append-id
...
Avoid adding id that might already exists
10 years ago
Jeremy Benoist
2951936e00
CS & PHPDoc
10 years ago
Jeremy Benoist
92965f76cf
Fix composer TLS exception on PHP 5.3.3
10 years ago
Jeremy Benoist
850ade16b6
Cleanup
10 years ago
Jeremy Benoist
dc590542f0
Avoid adding id that might already exists
...
We append a new node when it isn't a `div` or `p` (like when it's an `article`) with the same id which generate a DOM error "DOMElement::setAttribute(): ID blabla already defined".
10 years ago
Jeremy Benoist
41d7440c6e
Merge pull request #10 from j0k3r/remove-tidy-constraint
...
Remove tidy from requirement
11 years ago