mirror of
https://github.com/e107inc/e107.git
synced 2025-07-13 19:16:22 +02:00
Meta keywords format issue
This commit is contained in:
@ -4211,7 +4211,7 @@ class eHelper
|
|||||||
public static function formatMetaKeys($keywordString)
|
public static function formatMetaKeys($keywordString)
|
||||||
{
|
{
|
||||||
$keywordString = preg_replace('/[^\w\pL\s\-.,+]/u', '', strip_tags(e107::getParser()->toHTML($keywordString, TRUE)));
|
$keywordString = preg_replace('/[^\w\pL\s\-.,+]/u', '', strip_tags(e107::getParser()->toHTML($keywordString, TRUE)));
|
||||||
return trim(preg_replace('/[\s,]+/', ',', str_replace('_', ' ', $keywordString)));
|
return trim(preg_replace('/[\s]+,[\s]+/', ',', str_replace('_', ' ', $keywordString)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function formatMetaDescription($descrString)
|
public static function formatMetaDescription($descrString)
|
||||||
|
Reference in New Issue
Block a user