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 8fb9bf9 commit 9f09828Copy full SHA for 9f09828
Templating/Helper/FormHelper.php
@@ -243,9 +243,9 @@ public function humanize($text)
243
public function formEncodeCurrency($text, $widget = '')
244
{
245
if ('UTF-8' === $charset = $this->getCharset()) {
246
- $text = htmlspecialchars($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
+ $text = htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
247
} else {
248
- $text = htmlentities($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
+ $text = htmlentities($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
249
$text = iconv('UTF-8', $charset, $text);
250
$widget = iconv('UTF-8', $charset, $widget);
251
}
0 commit comments