| @@ 22-30 (lines=9) @@ | ||
| 19 | * |
|
| 20 | * @return array |
|
| 21 | */ |
|
| 22 | public function toArray() |
|
| 23 | { |
|
| 24 | libxml_use_internal_errors(true); |
|
| 25 | $root = new DOMDocument(); |
|
| 26 | $root->preserveWhiteSpace = false; |
|
| 27 | $root->loadHTML($this->getData()); |
|
| 28 | ||
| 29 | return $this->domNodeToArray($root); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 23-31 (lines=9) @@ | ||
| 20 | * |
|
| 21 | * @return array |
|
| 22 | */ |
|
| 23 | public function toArray() |
|
| 24 | { |
|
| 25 | libxml_use_internal_errors(true); |
|
| 26 | $root = new DOMDocument(); |
|
| 27 | $root->preserveWhiteSpace = false; |
|
| 28 | $root->loadXML($this->getData()); |
|
| 29 | ||
| 30 | return $this->domNodeToArray($root); |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @param array $data |
|