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
Jeremy Benoist
252bb4ef42
Add Tidy requirement in README
11 years ago
Jeremy Benoist
7c30d76b6e
Ensure tests are running without Tidy
11 years ago
Jeremy Benoist
111cb08034
Improve negative element
...
- add unlikelyCandidates: head
- add negative: recommend
11 years ago
Jeremy Benoist
74fbf6f009
Remove tidy from requirement
...
Sadly we can't suggest user to install the extension
11 years ago
Jeremy Benoist
1565a6819a
Add .gitattributes to slim down composer packages
...
When composer is used as a dependency manager for large web apps, transferring lots of extra files (such as tests and documentation) can be very time and bandwidth consuming. By using .gitattributes we can tell composer what files to ignore when distributing through composer.
11 years ago
Jeremy Benoist
f71c3a4196
Do not remove html tag attributes
...
They might contains useful information (at least language)
11 years ago
Jeremy Benoist
255a2fc7bc
Merge pull request #8 from j0k3r/nofollow
...
Do not remove nofollow links
11 years ago
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.
11 years ago
Jeremy Benoist
1830dc45d4
Merge pull request #7 from j0k3r/fix-nbsp
...
Avoid error with
11 years ago
Jeremy Benoist
6be1f9b984
Fix link to fivefilters fork
11 years ago
Jeremy Benoist
175196d6c2
Avoid error with
...
Fix #5
11 years ago
Jeremy Benoist
2b5af601d5
Do not format output to avoid breaking apps
...
It'll require to jump to 2.0.0 and I think it's to soon
11 years ago
Jeremy Benoist
d01eb2ac1e
Use class instead of id to avoid error
...
It generates error like `ID XXX already defined`
11 years ago
Jeremy Benoist
c5a4a490e1
CS
11 years ago
Jeremy Benoist
908a49824f
Add test on title
11 years ago
Jeremy Benoist
c67189248e
Backport changes from wallabag
...
e9e4ff87f8
11 years ago
Jeremy Benoist
91b80b70e2
Update HTML5 tags
...
From https://github.com/htacg/tidy-html5/blob/master/src/tags.c#L296
11 years ago
Jeremy Benoist
8667dae74b
Merge pull request #4 from j0k3r/php53
...
Restore compatibility with PHP 5.3
11 years ago
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
11 years ago
Jeremy Benoist
814c6e4730
Restore compatibility with PHP 5.3
11 years ago
Jeremy Benoist
b69619d386
Merge pull request #3 from j0k3r/phpunit-travis
...
Improve Travis
11 years ago
Jeremy Benoist
1963319a55
Improve Travis & add Scrutinizer
...
+ CS
+ Update README
11 years ago
Jeremy Benoist
f5d473780d
Fix javascript typo
...
And add coverage
11 years ago
Jeremy
ddd013e3f8
Merge pull request #1 from j0k3r/php53
...
Adjust test & php compatible version
11 years ago
Jeremy
b81cf8d1c5
Adjust test & php compatible version
11 years ago
Jeremy
881e441bdf
Initial commit
11 years ago