| @@ 55-67 (lines=13) @@ | ||
| 52 | * |
|
| 53 | * @return array|null |
|
| 54 | */ |
|
| 55 | public function getAllAttributes() |
|
| 56 | { |
|
| 57 | if ($this->node->hasAttributes()) { |
|
| 58 | $attributes = []; |
|
| 59 | foreach ($this->node->attributes as $attr) { |
|
| 60 | $attributes[$attr->name] = HtmlDomParser::putReplacedBackToPreserveHtmlEntities($attr->value); |
|
| 61 | } |
|
| 62 | ||
| 63 | return $attributes; |
|
| 64 | } |
|
| 65 | ||
| 66 | return null; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Return attribute value. |
|
| @@ 55-67 (lines=13) @@ | ||
| 52 | * |
|
| 53 | * @return array|null |
|
| 54 | */ |
|
| 55 | public function getAllAttributes() |
|
| 56 | { |
|
| 57 | if ($this->node->hasAttributes()) { |
|
| 58 | $attributes = []; |
|
| 59 | foreach ($this->node->attributes as $attr) { |
|
| 60 | $attributes[$attr->name] = XmlDomParser::putReplacedBackToPreserveHtmlEntities($attr->value); |
|
| 61 | } |
|
| 62 | ||
| 63 | return $attributes; |
|
| 64 | } |
|
| 65 | ||
| 66 | return null; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Return attribute value. |
|