Browse Source

update DEFAULT_HOST_PAGES_DOM_SELECTORS format

main
ghost 1 year ago
parent
commit
0638bc6742
  1. 14
      src/config/app.php.example

14
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 * Supported for text/html MIME documents only
* Leave empty array to skip DOM elements crawling * 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 * Settings:
* https://www.php.net/manual/en/function.strip-tags.php *
* 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) define('DEFAULT_HOST_PAGES_DOM_SELECTORS', json_encode((object)
[ [
'h1' => null, 'html' => [
'strip_tags' => [
'enabled' => false,
'allowed_tags' => null
]
],
// ... // ...
] ]
)); ));

Loading…
Cancel
Save