mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 04:26:20 +02:00
Issue #1281 Include og:image meta for Page-Body content.
This commit is contained in:
@ -2106,9 +2106,7 @@ class e_parse extends e_parser
|
|||||||
$replace = array("'", '$', "'", '$', SITEURL, "href='".SITEURL."request.php", '', '' );
|
$replace = array("'", '$', "'", '$', SITEURL, "href='".SITEURL."request.php", '', '' );
|
||||||
$text = str_replace($search, $replace, $text);
|
$text = str_replace($search, $replace, $text);
|
||||||
|
|
||||||
// Fix any left-over '&'
|
$text = $this->ampEncode($text);
|
||||||
$text = str_replace('&', '&', $text); //first revert any previously converted.
|
|
||||||
$text = str_replace('&', '&', $text);
|
|
||||||
|
|
||||||
if($tags == true && ($text))
|
if($tags == true && ($text))
|
||||||
{
|
{
|
||||||
@ -2119,6 +2117,21 @@ class e_parse extends e_parser
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean and Encode Ampersands '&' for output to browser.
|
||||||
|
* @param string $text
|
||||||
|
* @return mixed|string
|
||||||
|
*/
|
||||||
|
function ampEncode($text='')
|
||||||
|
{
|
||||||
|
// Fix any left-over '&'
|
||||||
|
$text = str_replace('&', '&', $text); //first revert any previously converted.
|
||||||
|
$text = str_replace('&', '&', $text);
|
||||||
|
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert any string back to plain text.
|
* Convert any string back to plain text.
|
||||||
* @param $text
|
* @param $text
|
||||||
|
Reference in New Issue
Block a user