diff --git a/ground/classes/Helper.php b/ground/classes/Helper.php index 3a3c977..279d1d0 100644 --- a/ground/classes/Helper.php +++ b/ground/classes/Helper.php @@ -39,8 +39,9 @@ class Helper public static function buildOG($point) { $og = array(); - $og['title'] = $point->name . ' [wikipoints.ru]'; - $og['description'] = mb_substr($point->description, 0, 200).'...'; + $og['title'] = str_replace('"', 'ʺ', $point->name) . ' [wikipoints.ru]'; + $point->description = str_replace('"', 'ʺ', $point->description); + $og['description'] = mb_substr($point->description, 0, 97, 'UTF-8').'...'; $og['site_name'] = 'WikiPoints: Лучшие выходные - это выходные в путешествии!'; $og['type'] = 'website'; $og['url'] = 'http://wikipoints.ru/?point=' . $point->id;