mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-09 14:27:55 +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::pageTitle($title->item(0)->nodeValue),
|
||||||
Filter::pageDescription($metaDescription),
|
Filter::pageDescription($metaDescription),
|
||||||
Filter::pageKeywords($metaKeywords),
|
Filter::pageKeywords($metaKeywords),
|
||||||
$queueHostPage->crawlMetaOnly ? null : $content,
|
$queueHostPage->crawlMetaOnly ? null : Filter::string($content),
|
||||||
time());
|
time());
|
||||||
|
|
||||||
// Update manifest registry
|
// Update manifest registry
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
class Filter {
|
class Filter {
|
||||||
|
|
||||||
|
static public function string(mixed $data) {
|
||||||
|
|
||||||
|
return (string) $data;
|
||||||
|
}
|
||||||
|
|
||||||
static public function url(mixed $url) {
|
static public function url(mixed $url) {
|
||||||
|
|
||||||
$url = (string) $url;
|
$url = (string) $url;
|
||||||
|
Loading…
Reference in New Issue
Block a user