| @@ -10,9 +10,8 @@ | ||
| 10 | 10 | |
| 11 | 11 | class LlmsTxtGenerator { |
| 12 | 12 | |
| 13 | 13 | public const HOSTINGER_LLMSTXT_SIGNATURE = '[comment]: # (Generated by Hostinger Tools Plugin)'; |
| 14 | - protected const UTF8_BOM = "\xEF\xBB\xBF"; | |
| 15 | 14 | public const HOSTINGER_LLMSTXT_SUPPORTED_POST_TYPES = array( |
| 16 | 15 | 'post' => 'Posts', |
| 17 | 16 | 'page' => 'Pages', |
| 18 | 17 | 'product' => 'Products', |
| @@ -86,10 +85,9 @@ | ||
| 86 | 85 | } |
| 87 | 86 | } |
| 88 | 87 | |
| 89 | 88 | public function get_content(): string { |
| 90 | - $content = self::UTF8_BOM; | |
| 91 | - $content .= $this->parser->inject_title(); | |
| 89 | + $content = $this->parser->inject_title(); | |
| 92 | 90 | $content .= $this->parser->inject_site_description(); |
| 93 | 91 | $content .= $this->parser->inject_items( $this->parser->get_by_post_type( 'post' ), 'Posts' ); |
| 94 | 92 | $content .= $this->parser->inject_items( $this->parser->get_by_post_type( 'page' ), 'Pages' ); |
| 95 | 93 | $content .= $this->maybe_inject_woocommerce_products(); |