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
Using the Twig extractor we've had a fatal error on a semi-custom filter.
$twig->addFilter(new Twig_SimpleFilter('addslashes', 'addslashes'));
Our twig template:
<div>{{ content.content|raw|addslashes }}</div>
Problem: We cannot use the default sanitization from Twig, we need the raw string with real HTML characters.
This will result in the following fatal error from the extractor:
PHP Fatal error: Uncaught Twig_Error_Syntax: Unknown "addslashes" filter
The text was updated successfully, but these errors were encountered:
Thanks for reporting!
I guess we need to register that extension in https://github.com/umpirsky/Twig-Gettext-Extractor/blob/master/twig-gettext-extractor#L29-L39.
Can you try that locally and tell if it works?
Sorry, something went wrong.
No branches or pull requests
Using the Twig extractor we've had a fatal error on a semi-custom filter.
Our twig template:
Problem: We cannot use the default sanitization from Twig, we need the raw string with real HTML characters.
This will result in the following fatal error from the extractor:
The text was updated successfully, but these errors were encountered: