/** * Push a tag open. * * @param string $tagName * @param array $attributes Key-value attributes; cleaned of HTML entities within function * * @return XenForo_Html_Tag Child tag that was added */ public function pushTagOpen($tagName, array $attributes) { $cleanAttributes = array(); foreach ($attributes as $attributeName => $attribute) { $cleanAttributes[$this->decodeEntities($attributeName)] = $this->decodeEntities($attribute); } if (!empty($cleanAttributes['style'])) { $cleanAttributes['style'] = $this->parseCss($cleanAttributes['style']); } $childTag = $this->_currentTag->addChildTag($tagName, $cleanAttributes); if (!$childTag->isVoid()) { $this->_currentTag = $childTag; } return $childTag; }