Jeremy Benoist
e4e975db96
Add PHP 8.5 on CI
2026-03-27 20:32:42 +01:00
Jeremy Benoist
e6ca6f117f
Drop PHP < 7.2
2025-09-26 18:21:56 +02:00
Jeremy Benoist
0b21d4ab2d
Clean
2025-09-26 18:19:16 +02:00
Jeremy Benoist
720f0d5503
Allow new psr/log & monolog
2025-09-26 18:17:03 +02:00
Jeremy Benoist
a21742b22a
Fix GA
2025-06-03 09:48:20 +02:00
Jeremy Benoist
d0af21814a
Ditch assertContains & assertNotContains
2021-11-29 21:04:56 +01:00
Jeremy Benoist
5b1eba79bd
Test on PHP 8 & drop Travis
2021-11-29 21:00:36 +01:00
Jeremy Benoist
635f8963dc
Fix Travis & PHPStan
2021-10-04 11:37:33 +02:00
Jeremy Benoist
19b2a25d96
Fix PHPCS config file
2021-10-04 11:32:34 +02:00
Jeremy Benoist
ea1368fac0
Body can be wiped without tidy
...
Re-create it in that case.
Also run CS-Fixer.
2021-03-08 11:59:24 +01:00
Jeremy Benoist
bd9ca1b2cd
Ditch Travis to use GitHub Actions
2020-11-30 14:18:40 +01:00
Jeremy Benoist
e6ad806460
Enable tests on PHP 8
2020-06-08 09:24:50 +02:00
Jeremy Benoist
6a8ecf232f
Use a new deps for HTML5 parser
...
`electrolinux/php-html5lib` was quite old and incompatible with the upcoming Composer 2.0.
Jumping to `masterminds/html5` for the same result. Also the lib is maintained.
Also:
- keep README in vendors
- use new Scrutinizer engine
- test with lower deps
- remove php-coveralls dev deps and download the phar during the CI build
2020-06-08 07:04:00 +02:00
Jeremy Benoist
90c625bb57
Cleanup travis
2020-04-12 16:30:02 +02:00
Jeremy Benoist
d649b59414
Fixing PHPUnit versions
2020-01-06 14:22:15 +01:00
Jeremy Benoist
44bebfc3d6
Only install PHPStan when we need it
...
This is to avoid error when installing it on PHP < 7.1
2020-01-06 14:03:30 +01:00
Jeremy Benoist
b1acc9ed73
Fix PHPStan (again)
...
Also cleanup
2019-11-19 14:09:29 +01:00
Jeremy Benoist
bb75b4f089
Fix PHPStan
2019-06-25 17:06:49 +02:00
Jeremy Benoist
11d2946904
Add openload.co to media detection
2019-06-25 16:54:38 +02:00
Jeremy Benoist
bb65caf864
Fix “A non well formed numeric value encountered”
2019-05-11 21:58:11 +02:00
Jeremy Benoist
74d9cc605a
Enable PHPStan
2019-02-07 15:51:31 +01:00
Jeremy Benoist
2dce2879bf
Update fixer rules
...
Following graby, wallabag, etc.
2019-02-04 11:21:34 +01:00
Jeremy Benoist
a78f01f656
Update path to coveralls bin
2019-02-04 11:01:47 +01:00
Jeremy Benoist
30a577c617
Dumping HHVM
2018-11-26 16:42:28 +01:00
Jeremy Benoist
70b393a2a3
Remove custom stuff for 7.2
2018-11-26 16:41:42 +01:00
Jeremy Benoist
9ab6d0d9e8
Updating to 7.2
2018-11-26 16:33:38 +01:00
Jeremy Benoist
163058aeff
Fix PHP 5.3 builds
2017-10-09 16:58:21 +02:00
Jeremy Benoist
613a63c062
CS
2017-06-30 16:42:29 +02:00
Jeremy Benoist
05089bbd03
Add missing HTML5 class
2017-06-30 16:32:37 +02:00
Jeremy Benoist
85fb92a042
Fix tests
2017-05-19 16:02:36 +02:00
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 `+`.
2017-05-19 15:37:46 +02:00
Jeremy Benoist
6a4720c951
Fix PHPUnit error on PHP 7+
2017-03-09 09:21:13 +01:00
Jeremy Benoist
8b1c3f147d
Don't be to hard on 'links' attribute
2017-02-02 15:57:15 +01:00
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
2016-10-20 23:40:52 +02:00
Jeremy Benoist
3de4e918b4
Convert header & section to p
...
And took `pre` element in score
2016-10-02 14:55:52 +02:00
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
2016-10-02 14:49:43 +02:00
Jeremy Benoist
22aa4c3b31
Fix composer & TLS
2016-06-23 07:44:54 +02:00
Jeremy Benoist
2ef400bf73
Enable php-cs-fixer
2016-06-23 07:28:10 +02:00
Jeremy Benoist
00f622e9b7
Revert BC changes
...
- avoid method signature update
- revert moving logic out of the constructor
2016-03-01 15:07:32 +01:00
Jeremy Benoist
c756ec067e
Fix tests
...
`getInnerText` might receive a null DOMElement if the xpath or query return no element.
2016-02-29 13:09:16 +01:00
Jeremy Benoist
8ab7d76cd5
Use Monolog instead of custom solution
...
Remove that ugly `openlog` & `syslog`
2016-02-29 13:01:40 +01:00
Jeremy Benoist
149a333b40
Remove addPreFilter
...
Pre filters are used in the __construct so adding more pre filters once the object is instantiated is useless.
2016-02-29 12:10:56 +01:00
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.
2016-02-29 11:53:03 +01:00
Jeremy Benoist
8cbecd7e99
Use cache for Travis
...
And also avoid Github api limit
2016-02-29 11:13:43 +01:00
Jeremy Benoist
438699ab15
Disable html coverage
...
Required only on local.
2016-02-29 11:13:15 +01:00
Jeremy Benoist
ea7a62d352
Switch to Coveralls
2016-02-29 11:13:15 +01:00
Jeremy Benoist
2951936e00
CS & PHPDoc
2016-02-29 11:00:45 +01:00
Jeremy Benoist
92965f76cf
Fix composer TLS exception on PHP 5.3.3
2016-02-29 10:30:33 +01:00
Jeremy Benoist
850ade16b6
Cleanup
2016-02-29 10:22:07 +01:00
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".
2016-02-29 10:21:52 +01:00
Jeremy Benoist
252bb4ef42
Add Tidy requirement in README
2015-11-09 20:25:39 +01:00
Jeremy Benoist
7c30d76b6e
Ensure tests are running without Tidy
2015-11-09 19:59:18 +01:00
Jeremy Benoist
111cb08034
Improve negative element
...
- add unlikelyCandidates: head
- add negative: recommend
2015-11-09 19:44:11 +01:00
Jeremy Benoist
f71c3a4196
Do not remove html tag attributes
...
They might contains useful information (at least language)
2015-09-23 21:09:38 +02:00
Jeremy Benoist
b77876b30a
Do not remove nofollow links
...
Most the time, they can be usefull.
At least, it'll be a link to something unrelated. But we won't lose a link inside the content.
Also, adding some extra space.
2015-09-22 19:25:57 +02:00
Jeremy Benoist
175196d6c2
Avoid error with
...
Fix #5
2015-09-18 19:10:48 +02:00
Jeremy Benoist
d01eb2ac1e
Use class instead of id to avoid error
...
It generates error like `ID XXX already defined`
2015-09-14 21:49:40 +02:00
Jeremy Benoist
c5a4a490e1
CS
2015-08-24 11:10:54 +02:00
Jeremy Benoist
908a49824f
Add test on title
2015-08-24 11:09:47 +02:00
Jeremy Benoist
c67189248e
Backport changes from wallabag
...
https://github.com/wallabag/php-readability/commit/e9e4ff87f8fc56d406ccdd5a9a7f1d3d6af07e79
2015-08-24 11:09:38 +02:00
Jeremy Benoist
91b80b70e2
Update HTML5 tags
...
From https://github.com/htacg/tidy-html5/blob/master/src/tags.c#L296
2015-08-19 23:12:31 +02:00
Jeremy Benoist
eecae93161
Try hhvm instead of nightly
...
HHVM nightly is no longer supported on Ubuntu Precise.
See https://github.com/travis-ci/travis-ci/issues/3788 and https://github.com/facebook/hhvm/issues/5220
2015-06-10 09:33:25 +02:00
Jeremy Benoist
814c6e4730
Restore compatibility with PHP 5.3
2015-06-10 09:33:21 +02:00
Jeremy Benoist
1963319a55
Improve Travis & add Scrutinizer
...
+ CS
+ Update README
2015-04-29 10:24:24 +02:00
Jeremy Benoist
f5d473780d
Fix javascript typo
...
And add coverage
2015-04-29 10:24:20 +02:00
Jeremy
b81cf8d1c5
Adjust test & php compatible version
2014-12-12 12:13:35 +01:00
Jeremy
881e441bdf
Initial commit
2014-12-12 11:43:29 +01:00