We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d54d4 commit 072921bCopy full SHA for 072921b
1 file changed
HtmlExtension.php
@@ -77,7 +77,7 @@ public function dataUri(string $data, ?string $mime = null, array $parameters =
77
$repr .= ';'.$key.'='.rawurlencode($value);
78
}
79
80
- if (0 === strpos($mime, 'text/')) {
+ if (str_starts_with($mime, 'text/')) {
81
$repr .= ','.rawurlencode($data);
82
} else {
83
$repr .= ';base64,'.base64_encode($data);
0 commit comments