Bitrix Site Manager

CMain::GetTitle

string
CMain::GetTitle(
 string property_name = "title",
 bool strip_tags = true
)

The method GetTitle returns the page title.

Parameters

ParameterDescription
property_name Identifier of the page property whose value is to be printed as the title (effective if the property had been previously set by CMain::SetPageProperty).
Optional; title by default.
strip_tags If true, deletes all HTML tags from the title.
Optional; true by default.

See Also