• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/dom/element.php
  • Класс: BitrixMainWebDOMElement
  • Вызов: Element::getTextContent
public function getTextContent()
{
	$content = '';
	foreach($this->getChildNodesArray() as $child)
	{
		if($child->getNodeType() === self::COMMENT_NODE || $child->getNodeType() === self::PROCESSING_INSTRUCTION_NODE )
		{
			continue;
		}

		$content .= $child->getTextContent();
	}

	return $content;
}