Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions selector.inc
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ function element_to_array($element) {
$array = array(
'name' => $element->nodeName,
'attributes' => array(),
'text' => $element->textContent,
'text' => utf8_decode($element->textContent),
'children' =>elements_to_array($element->childNodes)
);
if ($element->attributes->length)
foreach($element->attributes as $key => $attr)
$array['attributes'][$key] = $attr->value;
$array['attributes'][$key] = utf8_decode($attr->value);
return $array;
}

Expand Down