Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 29 | public function unescape($string) |
|
29 | { |
||
30 | // ============== |
||
31 | // = WARNING = |
||
32 | // ============== |
||
33 | // It is assumed that the given string has already had its XML entities decoded. |
||
34 | // This is true if the string is coming from a DOMNode (as DOMNode already decode XML entities on creation). |
||
35 | // Therefore there is no need to call "htmlspecialchars_decode()". |
||
36 | 29 | return $string; |
|
37 | } |
||
38 | } |
||
39 |