How to display description in bitrix without meta tag?

Standard design<? $APPLICATION--->ShowMeta("description") ?> outputs so <meta name="description" content="text Here"> and you need to get just the text Here without the META tag.
June 3rd 19 at 21:01
2 answers
June 3rd 19 at 21:03
Solution
<meta property="og:description" content="<?$APPLICATION->ShowProperty('description');?>">
June 3rd 19 at 21:05
UPDATE 19.07.2018:

According to the direct formulation of the question to realise the value of a property you need to use CMain::GetProperty():

$description = $APPLICATION->GetProperty("description");


However, this mechanism works on the technology of deferred functions, this means that depending on the call may return different results.
The author suggests using the CMain::ShowProperty(), using

echo $APPLICATION->ShowProperty("page_title");

However, this possibility exists only in the template of the site and does not imply further manipulation of the result.

For example, to add in description the user's city to use ShowProperty for data manipulation is absolutely impossible, you should instead subscribe to an event onEpilog of the main module and via the GetProperty + SetProperty to change the value of the string
Somehow, nothing is displayed on the main page. - Camilla36 commented on June 3rd 19 at 21:08
the function returns, and does not display. Make echo.
And it is likely that it gets the value in one of the components is lower than you cause it is a very important factor - Roel.OConnell30 commented on June 3rd 19 at 21:11
below, the above is not important, it is still empty. - Camilla36 commented on June 3rd 19 at 21:14
Why is this so complicated and not just advise this:
<meta property="og:description" content="<?$APPLICATION->ShowProperty('description');?>">
- Camilla36 commented on June 3rd 19 at 21:17
expanded and heavily rewrote the answer to make it clearer why I didn't suggest doing so)

P. S. If the short one asked and solved a very different problem) - Roel.OConnell30 commented on June 3rd 19 at 21:20

Find more questions by tags 1C-Bitrix