We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contao 5.3.0 php81 version dev-contao5
in my customized template I get this error: Attempted to call function "specialchars" from the global namespace. with a reference to line 31
Attempted to call function "specialchars" from the global namespace.
<input type="<?= $this->type ?>" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="text<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>" value="<?= specialchars($this->value) ?>"<?= $this->getAttributes() ?> data-input autocomplete="off">
changing <?= specialchars($this->value) ?> to <?= htmlspecialchars($this->value, ENT_QUOTES, 'UTF-8') ?> prevents the error.
<?= specialchars($this->value) ?>
<?= htmlspecialchars($this->value, ENT_QUOTES, 'UTF-8') ?>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Contao 5.3.0
php81
version dev-contao5
in my customized template I get this error:
Attempted to call function "specialchars" from the global namespace.
with a reference to line 31
changing
<?= specialchars($this->value) ?>
to<?= htmlspecialchars($this->value, ENT_QUOTES, 'UTF-8') ?>
prevents the error.The text was updated successfully, but these errors were encountered: