@@ -65,16 +65,16 @@ public function aroundRenderResult(
65
65
$ startTag = '<script ' ;
66
66
$ endTag = '</script> ' ;
67
67
68
- while (false !== ($ start = mb_stripos ($ html , $ startTag ))) {
69
- $ end = mb_stripos ($ html , $ endTag , $ start );
68
+ while (false !== ($ start = stripos ($ html , $ startTag ))) {
69
+ $ end = stripos ($ html , $ endTag , $ start );
70
70
if (false === $ end ) {
71
71
break ;
72
72
}
73
73
74
- $ len = $ end + mb_strlen ($ endTag ) - $ start ;
75
- $ script = mb_substr ($ html , $ start , $ len );
74
+ $ len = $ end + strlen ($ endTag ) - $ start ;
75
+ $ script = substr ($ html , $ start , $ len );
76
76
77
- if (false !== mb_stripos ($ script , self ::EXCLUDE_FLAG_PATTERN )) {
77
+ if (false !== stripos ($ script , self ::EXCLUDE_FLAG_PATTERN )) {
78
78
continue ;
79
79
}
80
80
@@ -83,8 +83,8 @@ public function aroundRenderResult(
83
83
}
84
84
85
85
$ scripts = implode (PHP_EOL , $ scripts );
86
- if ($ end = mb_stripos ($ html , '</body> ' )) {
87
- $ html = mb_substr ($ html , 0 , $ end ) . $ scripts . substr ($ html , $ end );
86
+ if ($ end = stripos ($ html , '</body> ' )) {
87
+ $ html = substr ($ html , 0 , $ end ) . $ scripts . substr ($ html , $ end );
88
88
} else {
89
89
$ html .= $ scripts ;
90
90
}
0 commit comments