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 3b3e97f commit 169ee10Copy full SHA for 169ee10
FormRenderer.php
@@ -291,9 +291,9 @@ public function humanize($text)
291
public function encodeCurrency(Environment $environment, $text, $widget = '')
292
{
293
if ('UTF-8' === $charset = $environment->getCharset()) {
294
- $text = htmlspecialchars($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
+ $text = htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
295
} else {
296
- $text = htmlentities($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
+ $text = htmlentities($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
297
$text = iconv('UTF-8', $charset, $text);
298
$widget = iconv('UTF-8', $charset, $widget);
299
}
0 commit comments