mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 18:35:04 +00:00
update DEFAULT_HOST_PAGES_DOM_SELECTORS format
This commit is contained in:
parent
175209813f
commit
0638bc6742
@ -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
|
||||
]
|
||||
],
|
||||
// ...
|
||||
]
|
||||
));
|
||||
|
Loading…
x
Reference in New Issue
Block a user