| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | function mb_normalise($string) |
||
| 6 | { |
||
| 7 | $string = html_entity_decode( |
||
| 8 | preg_replace( |
||
| 9 | '~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|tilde|uml);~i', |
||
| 10 | '$1', |
||
| 11 | htmlentities($string) |
||
| 12 | ), |
||
| 13 | ENT_QUOTES, |
||
| 14 | 'UTF-8' |
||
| 15 | ); |
||
| 16 | return preg_replace('/[^A-z0-9]/', '_', mb_strtolower($string)); |
||
| 17 | } |
||
| 18 |