• Модуль: documentgenerator
  • Путь к файлу: ~/bitrix/modules/documentgenerator/lib/body/html.php
  • Класс: BitrixDocumentGeneratorBodyHtml
  • Вызов: Html::getNodeAttributes
static function getNodeAttributes(Node $node)
{
	$attributes = [];
	if($node->hasAttributes())
	{
		foreach($node->getAttributes() as $attr)
		{
			/* @var $attr Attr*/
			$attributes = array_merge($attributes, $attr->toArray());
		}
	}

	return $attributes;
}