Skip to content

Commit bd180b6

Browse files
authored
Decode Attribute
1 parent 75b9b1c commit bd180b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,8 @@ function get_display_size()
952952
}
953953

954954
// camel naming conventions
955-
function getAllAttributes() {return $this->attr;}
956-
function getAttribute($name) {return $this->__get($name);}
955+
function getAllAttributes() {return array_map('html_entity_decode', $this->attr);}
956+
function getAttribute($name) {return html_entity_decode($this->__get($name));}
957957
function setAttribute($name, $value) {$this->__set($name, $value);}
958958
function hasAttribute($name) {return $this->__isset($name);}
959959
function removeAttribute($name) {$this->__set($name, null);}

0 commit comments

Comments
 (0)