mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
fixes #3192 strip bbcode/html in meta description
This commit is contained in:
@@ -195,7 +195,8 @@ if(!empty($forumInfo['forum_description']))
|
|||||||
{
|
{
|
||||||
define("META_DESCRIPTION", $tp->text_truncate(
|
define("META_DESCRIPTION", $tp->text_truncate(
|
||||||
str_replace(
|
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, '...'));
|
), 250, '...'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -164,7 +164,8 @@ if(count($postList))
|
|||||||
{
|
{
|
||||||
define("META_DESCRIPTION", $tp->text_truncate(
|
define("META_DESCRIPTION", $tp->text_truncate(
|
||||||
str_replace(
|
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, '...'));
|
), 250, '...'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user