Jeremy Benoist
2ef400bf73
Enable php-cs-fixer
2016-06-23 07:28:10 +02:00
Jeremy Benoist
dec4514c00
Merge pull request #14 from j0k3r/revert-bc
...
Revert BC changes
1.1.1
2016-03-01 15:14:36 +01: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
7b47e2f1de
Merge pull request #13 from j0k3r/monolog
...
Use Monolog instead of custom solution
1.1.0
2016-03-01 14:09:42 +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
6e3f2e8c0b
Merge pull request #12 from j0k3r/travis-coveralls
...
Switch to Coveralls
2016-02-29 11:18:53 +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
9181fd1a2c
Merge pull request #11 from j0k3r/append-id
...
Avoid adding id that might already exists
2016-02-29 11:12:52 +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
41d7440c6e
Merge pull request #10 from j0k3r/remove-tidy-constraint
...
Remove tidy from requirement
v1.0.9
2015-11-10 09:55:29 +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
74fbf6f009
Remove tidy from requirement
...
Sadly we can't suggest user to install the extension
2015-11-09 11:12:07 +01:00
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.
2015-10-29 13:56:13 +01:00
Jeremy Benoist
f71c3a4196
Do not remove html tag attributes
...
They might contains useful information (at least language)
v1.0.8
2015-09-23 21:09:38 +02:00
Jeremy Benoist
255a2fc7bc
Merge pull request #8 from j0k3r/nofollow
...
Do not remove nofollow links
2015-09-23 17:58:32 +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
1830dc45d4
Merge pull request #7 from j0k3r/fix-nbsp
...
Avoid error with
v1.0.7
2015-09-20 21:05:55 +02:00
Jeremy Benoist
6be1f9b984
Fix link to fivefilters fork
2015-09-18 19:19:26 +02:00
Jeremy Benoist
175196d6c2
Avoid error with
...
Fix #5
2015-09-18 19:10:48 +02:00
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
v1.0.6
2015-09-15 22:25:08 +02:00
Jeremy Benoist
d01eb2ac1e
Use class instead of id to avoid error
...
It generates error like `ID XXX already defined`
v1.0.5
2015-09-14 21:49:40 +02:00
Jeremy Benoist
c5a4a490e1
CS
v1.0.4
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
v1.0.3
2015-08-19 23:12:31 +02:00
Jeremy Benoist
8667dae74b
Merge pull request #4 from j0k3r/php53
...
Restore compatibility with PHP 5.3
v1.0.2
2015-06-11 09:39:26 +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
b69619d386
Merge pull request #3 from j0k3r/phpunit-travis
...
Improve Travis
v1.0.1
2015-04-29 10:27:50 +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
ddd013e3f8
Merge pull request #1 from j0k3r/php53
...
Adjust test & php compatible version
v1.0
2014-12-12 12:14:40 +01: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