@@ -34,13 +34,13 @@ |
||
34 | 34 | $text = '<label class="u-block" for="js-toggler-menu"><svg aria-labelledby="title" role="img" class="u-icon u-icon-burger" viewbox="0 0 18 18" width="18" height="18"><title lang="fr">Icone menu burger</title><span class="u-visually-hidden" aria-hidden="true">Menu</span></label>'; |
35 | 35 | |
36 | 36 | $this->assertSame('Icone menu burger Menu', CleanText::stripHtmlTags($text)); |
37 | - $this->assertSame('Icone menu burger Menu', CleanText::stipHtmlTagsOldWay(str_replace( '<', ' <', $text))); |
|
37 | + $this->assertSame('Icone menu burger Menu', CleanText::stipHtmlTagsOldWay(str_replace('<', ' <', $text))); |
|
38 | 38 | |
39 | 39 | |
40 | 40 | $text = '<label class="u-block" for="js-toggler-menu"><svg aria-labelledby="title" role="img" class="u-icon u-icon-burger" viewbox="0 0 18 18" width="18" height="18"><title lang="fr">Icone menu burger</title>'."\n".'<span class="u-visually-hidden" aria-hidden="true">Menu</span></label>'; |
41 | 41 | |
42 | 42 | $this->assertSame('Icone menu burger Menu', CleanText::stripHtmlTags($text)); |
43 | - $this->assertSame('Icone menu burger Menu', CleanText::stipHtmlTagsOldWay(str_replace( '<', ' <', $text))); |
|
43 | + $this->assertSame('Icone menu burger Menu', CleanText::stipHtmlTagsOldWay(str_replace('<', ' <', $text))); |
|
44 | 44 | |
45 | 45 | } |
46 | 46 | } |