diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index ad0ce839d..e43ef983f 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -195,7 +195,8 @@ if(!empty($forumInfo['forum_description'])) { define("META_DESCRIPTION", $tp->text_truncate( str_replace( - array('"', "'"), '', strip_tags($tp->toHTML($forumInfo['forum_description'])) + //array('"', "'"), '', strip_tags($tp->toHTML($forumInfo['forum_description'])) + array('"', "'"), '', $tp->toText($forumInfo['forum_description']) ), 250, '...')); } diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index 74c4fa2b3..85d5e5cac 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -164,7 +164,8 @@ if(count($postList)) { define("META_DESCRIPTION", $tp->text_truncate( str_replace( - array('"', "'"), '', strip_tags($tp->toHTML($postList[0]['post_entry'])) + //array('"', "'"), '', strip_tags($tp->toHTML($postList[0]['post_entry'])) + array('"', "'"), '', $tp->toText($postList[0]['post_entry']) ), 250, '...')); }