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
2951936e00
CS & PHPDoc
2016-02-29 11:00:45 +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
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
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
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`
2015-09-14 21:49:40 +02:00
Jeremy Benoist
c5a4a490e1
CS
2015-08-24 11:10:54 +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
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
881e441bdf
Initial commit
2014-12-12 11:43:29 +01:00