Jérémy Benoist
3c0289bf89
Merge pull request #46 from j0k3r/phpstan
...
Enable PHPStan
7 years ago
Jeremy Benoist
74d9cc605a
Enable PHPStan
7 years ago
Jérémy Benoist
6a0f3337a6
Merge pull request #45 from j0k3r/fix/update-fixer-rules
...
Update fixer rules
7 years ago
Jeremy Benoist
2dce2879bf
Update fixer rules
...
Following graby, wallabag, etc.
7 years ago
Jérémy Benoist
49ce4233fa
Merge pull request #42 from Kdecherf/fix-tidy
...
tidy: use tidy_repair_string instead of tidy_parse_string+tidy_clean_repair
7 years ago
Kevin Decherf
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>
7 years ago
Jérémy Benoist
db69fe59a2
Merge pull request #44 from j0k3r/fix/coveralls-upload
...
Update path to coveralls bin
7 years ago
Jeremy Benoist
a78f01f656
Update path to coveralls bin
7 years ago
Jérémy Benoist
db4508003b
Merge pull request #43 from Kdecherf/composer-bump
...
Composer bump, php-cs bump to v2, travis update
7 years ago
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>
7 years ago
Kevin Decherf
694f0308fe
composer: bump dependencies, move to php-cs v2
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
7 years ago
Jérémy Benoist
bbe9021fe7
Merge pull request #36 from Kdecherf/failing-test
...
tests: fix possible typo in testPostFilters() leading to failure
7 years ago
Jérémy Benoist
9dee4a240d
Add some badges
7 years ago
Jérémy Benoist
eef6d6d456
Merge pull request #41 from j0k3r/testing-7.2-7.3
...
Updating to 7.2
7 years ago
Jeremy Benoist
30a577c617
Dumping HHVM
7 years ago
Jeremy Benoist
70b393a2a3
Remove custom stuff for 7.2
7 years ago
Jeremy Benoist
9ab6d0d9e8
Updating to 7.2
7 years ago
Jérémy Benoist
8712db510e
Merge pull request #40 from Simounet/giphy-allowed
...
Giphy added to allowed medias
7 years ago
Simounet
422c74f29c
Giphy added to allowed medias
7 years ago
Jérémy Benoist
ed3393a79f
Merge pull request #38 from Simounet/feature/media-added-to-positive
...
Media class added to positive candidates
8 years ago
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
3a7350a8a7
tests: fix possible typo in testPostFilters() leading to failure
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
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