mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-09 22:37:57 +00:00
convert page data to string
This commit is contained in:
parent
dfca5570c6
commit
8ce0324e94
@ -475,7 +475,7 @@ try {
|
||||
Filter::pageTitle($title->item(0)->nodeValue),
|
||||
Filter::pageDescription($metaDescription),
|
||||
Filter::pageKeywords($metaKeywords),
|
||||
$queueHostPage->crawlMetaOnly ? null : $content,
|
||||
$queueHostPage->crawlMetaOnly ? null : Filter::string($content),
|
||||
time());
|
||||
|
||||
// Update manifest registry
|
||||
|
@ -2,6 +2,11 @@
|
||||
|
||||
class Filter {
|
||||
|
||||
static public function string(mixed $data) {
|
||||
|
||||
return (string) $data;
|
||||
}
|
||||
|
||||
static public function url(mixed $url) {
|
||||
|
||||
$url = (string) $url;
|
||||
|
Loading…
Reference in New Issue
Block a user