Jérémy Benoist and GitHub
49ce4233fa
Merge pull request #42 from Kdecherf/fix-tidy
...
tidy: use tidy_repair_string instead of tidy_parse_string+tidy_clean_repair
2019-02-04 11:17:13 +01:00
Kevin Decherf and Jeremy Benoist
26c881d864
tidy: use tidy_repair_string instead of tidy_parse_string+tidy_clean_repair
...
A change released in tidy 5.6.0 breaks php-tidy when using
tidy_parse_string+tidy_clean_repair and wrap=0, incorrectly wrapping
every single word. Also it seems that $tidy->value should not be used to
retrieve the repaired html as far as it is undocumented and for internal
use.
We replace the call with tidy_repair_string which directly returns the
repaired string.
Relates to https://github.com/htacg/tidy-html5/issues/673
Relates to https://bugs.php.net/bug.php?id=75947
Tests pass.
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-02-04 11:08:18 +01:00
Jérémy Benoist and GitHub
db69fe59a2
Merge pull request #44 from j0k3r/fix/coveralls-upload
...
Update path to coveralls bin
2019-02-04 11:08:02 +01:00
Jeremy Benoist
a78f01f656
Update path to coveralls bin
2019-02-04 11:01:47 +01:00
Jérémy Benoist and GitHub
db4508003b
Merge pull request #43 from Kdecherf/composer-bump
...
Composer bump, php-cs bump to v2, travis update
2019-02-04 10:50:17 +01:00
Kevin Decherf
15b12ea2d6
travis: remove PHP < 5.6 and related stuff, phpcs on 7.2, 7.3 not fail
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-02-03 16:50:40 +01:00
Kevin Decherf
694f0308fe
composer: bump dependencies, move to php-cs v2
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-02-03 16:49:21 +01:00
Jérémy Benoist and GitHub
bbe9021fe7
Merge pull request #36 from Kdecherf/failing-test
...
tests: fix possible typo in testPostFilters() leading to failure
2018-12-10 12:02:43 +01:00
Jérémy Benoist and GitHub
9dee4a240d
Add some badges
2018-11-28 10:05:23 +01:00
Jérémy Benoist and GitHub
eef6d6d456
Merge pull request #41 from j0k3r/testing-7.2-7.3
...
Updating to 7.2
1.1.11
2018-11-26 16:54:20 +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
Jérémy Benoist and GitHub
8712db510e
Merge pull request #40 from Simounet/giphy-allowed
...
Giphy added to allowed medias
2018-11-26 16:31:18 +01:00
Simounet
422c74f29c
Giphy added to allowed medias
2018-11-20 19:27:41 +01:00
Jérémy Benoist and GitHub
ed3393a79f
Merge pull request #38 from Simounet/feature/media-added-to-positive
...
Media class added to positive candidates
1.1.10
2018-06-05 11:54:53 +00:00
Simounet
63cd304dba
Media class added to positive candidates
...
Fix Mediapart images.
2018-06-05 13:26:39 +02:00
Jérémy Benoist and GitHub
43939f88d9
Merge pull request #37 from Kdecherf/footnotes-candidates
...
Keep elements with 'footnote' as possible candidates
2017-11-03 18:21:40 +02:00
Kevin Decherf
3a7350a8a7
tests: fix possible typo in testPostFilters() leading to failure
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2017-11-01 16:46:01 +01:00
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 >
2017-11-01 16:45:07 +01:00
Jérémy Benoist and GitHub
276684ab6d
Merge pull request #35 from j0k3r/travis
...
Fix PHP 5.3 builds
2017-10-09 17:16:58 +02:00
Jeremy Benoist
163058aeff
Fix PHP 5.3 builds
2017-10-09 16:58:21 +02:00
Jérémy Benoist and GitHub
6427dd7371
Merge pull request #32 from j0k3r/html5
...
Add missing HTML5 class
1.1.9
2017-06-30 16:50:09 +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
Jérémy Benoist and GitHub
5ac82f3c87
Merge pull request #30 from j0k3r/avoid-php-warning
...
Avoid php warning
1.1.8
2017-05-19 16:16:20 +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
Jérémy Benoist and GitHub
6def743902
Merge pull request #27 from jtojnar/ext-mbstring
...
Add mbstring as a dependency
1.1.7
2017-03-18 09:16:30 +01:00
Jan Tojnar
8a44926392
Add mbstring as a dependency
2017-03-18 04:02:50 +01:00
Jérémy Benoist and GitHub
8c7740f073
Merge pull request #26 from j0k3r/fix-phpunit-7.x
...
Fix PHPUnit error on PHP 7+
2017-03-09 09:41:33 +01:00
Jeremy Benoist
6a4720c951
Fix PHPUnit error on PHP 7+
2017-03-09 09:21:13 +01:00
Jérémy Benoist and GitHub
7a9a82b543
Update README.md
2017-03-09 09:02:04 +01:00
Jérémy Benoist and GitHub
8a91d36294
Merge pull request #25 from jtojnar/patch-1
...
Add tidy to suggested dependenies
2017-03-09 09:01:05 +01:00
Jan Tojnar and GitHub
669adfb20f
Add tidy to suggested dependenies
2017-02-16 15:12:45 +01:00
Jeremy Benoist and GitHub
445b889efb
Merge pull request #24 from j0k3r/links
...
Don't be to hard on 'links' attribute
1.1.6
2017-02-02 16:12:48 +01:00
Jeremy Benoist
8b1c3f147d
Don't be to hard on 'links' attribute
2017-02-02 15:57:15 +01:00
Jeremy Benoist and GitHub
a505a13d0c
Merge pull request #22 from jtojnar/master
...
Depend on psr/log instead of Monolog
1.1.5
2017-01-14 17:09:58 +01:00
Jan Tojnar
9fe0d07805
Depend on psr/log instead of Monolog
2017-01-14 09:08:15 +01:00
Jeremy Benoist and GitHub
e5d31b93d1
Merge pull request #21 from j0k3r/childnode-goes-null
...
Avoid childnode becoming null to generate a warning
1.1.4
2017-01-11 10:54:24 +01:00
Jeremy Benoist and 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.
2017-01-10 11:13:09 +01:00
Jeremy Benoist
ff754b80bd
Avoid childnode becoming null to generate a warning
2017-01-10 10:58:12 +01:00
Jeremy Benoist and GitHub
ade850534c
Merge pull request #18 from j0k3r/tool
...
Don’t be too agressive
1.1.3
2016-10-21 07:24:11 +02: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 and GitHub
47ce4fb7f9
Merge pull request #16 from j0k3r/info
...
“info” is too agressive in unlikelyCandidates
1.1.2
2016-10-03 09:13:35 +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 and GitHub
fb9810a827
Merge pull request #15 from j0k3r/cs
...
Enable php-cs-fixer
2016-06-24 09:36:50 +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