From 0638bc674266b62a950c1227d815b42f3e026651 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 17 Aug 2023 12:55:15 +0300 Subject: [PATCH] update DEFAULT_HOST_PAGES_DOM_SELECTORS format --- src/config/app.php.example | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/config/app.php.example b/src/config/app.php.example index 15147b7..1f193e4 100644 --- a/src/config/app.php.example +++ b/src/config/app.php.example @@ -194,13 +194,21 @@ define('DEFAULT_HOST_PAGES_MIME', 'text/html,application/xhtml+xml,application/j * Supported for text/html MIME documents only * Leave empty array to skip DOM elements crawling * - * Provide CSS selector as key and allowed tags as value for each selector, leave null to strip all childrent tags - * https://www.php.net/manual/en/function.strip-tags.php + * Settings: + * + * strip_tags + * enabled: true|false + * allowed_tags: array|string|null (https://www.php.net/manual/en/function.strip-tags.php) * */ define('DEFAULT_HOST_PAGES_DOM_SELECTORS', json_encode((object) [ - 'h1' => null, + 'html' => [ + 'strip_tags' => [ + 'enabled' => false, + 'allowed_tags' => null + ] + ], // ... ] ));