diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | src/Configuration.php | 24 |
3 files changed, 1 insertions, 25 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 05d9a12..bb44998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. - Added 'data-orig' as an URL source for images - Removed 'modal' as a negative property from classes +- Removed all references to the `data-readability` tags that don't apply anymore to the new structure ## [v1.0.0](https://github.com/andreskrey/readability.php/releases/tag/v1.0.0) @@ -78,7 +78,6 @@ Then you pass this Configuration object to Readability. The following options ar - **StripUnlikelyCandidates**: default value `true`, remove nodes that are unlikely to have relevant information. Useful for debugging or parsing complex or non-standard articles. - **CleanConditionally**: default value `true`, remove certain nodes after parsing to return a cleaner result. - **WeightClasses**: default value `true`, weight classes during the rating phase. -- **RemoveReadabilityTags**: default value `true`, remove the data-readability tags inside the nodes that are added during the rating phase. - **FixRelativeURLs**: default value `false`, convert relative URLs to absolute. Like `/test` to `http://host/test`. - **SubstituteEntities**: default value `false`, disables the `substituteEntities` flag of libxml. Will avoid substituting HTML entities. Like `á` to รก. - **NormalizeEntities**: default value `false`, converts UTF-8 characters to its HTML Entity equivalent. Useful to parse HTML with mixed encoding. diff --git a/src/Configuration.php b/src/Configuration.php index 1a405de..0b5e0bb 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -34,10 +34,6 @@ class Configuration /** * @var bool */ - protected $removeReadabilityTags = true; - /** - * @var bool - */ protected $fixRelativeURLs = false; /** * @var bool @@ -175,26 +171,6 @@ class Configuration /** * @return bool */ - public function getRemoveReadabilityTags() - { - return $this->removeReadabilityTags; - } - - /** - * @param bool $removeReadabilityTags - * - * @return $this - */ - public function setRemoveReadabilityTags($removeReadabilityTags) - { - $this->removeReadabilityTags = $removeReadabilityTags; - - return $this; - } - - /** - * @return bool - */ public function getFixRelativeURLs() { return $this->fixRelativeURLs; |