From 29c099cb9c1a9e2f6871068513fc321828da31d2 Mon Sep 17 00:00:00 2001 From: wn_ Date: Wed, 3 Apr 2024 17:23:41 +0000 Subject: Add config support for ignoring additional elements. --- README.md | 1 + src/Configuration.php | 25 +++++++++++++++++++++++++ src/Readability.php | 8 ++++---- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c910714..547178c 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Then you pass this Configuration object to Readability. The following options ar - **KeepClasses**: default value `false`, which removes all `class="..."` attribute values from HTML elements. - **Parser**: default value `html5`, which uses HTML5-PHP for parsing. Set to `libxml` to use that instead (not recommended for modern HTML documents). - **SummonCthulhu**: default value `false`, remove all `