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