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
Since angular-translate is installed on ng-admin, all string fields are HTML escaped.
angular-translate
It is caused by the line $translateProvider.useSanitizeValueStrategy('sanitize'); in config/translate.js.
$translateProvider.useSanitizeValueStrategy('sanitize');
The angular-translate's documentation recommand to set the sanitize strategy to strategy but we want to be able to switch it off.
strategy
You have an API endpoint that serve this entity:
{ "id": 42, "name": "TP & SP" }
And a ng-admin config as following:
entity.listView().fields([ nga.field('id', 'number'), nga.field('name', 'string'), ]);
Expected behavior:
42
TP & SP
Actual behavior:
TP & SP
The text was updated successfully, but these errors were encountered:
Unescaped translation
2650af4
Disable default HTML escape from angular-translate Fix #1214
74b29d8
No branches or pull requests
Description
Since
angular-translate
is installed on ng-admin, all string fields are HTML escaped.It is caused by the line
$translateProvider.useSanitizeValueStrategy('sanitize');
in config/translate.js.The angular-translate's documentation recommand to set the sanitize strategy to
strategy
but we want to be able to switch it off.Steps to Reproduce
You have an API endpoint that serve this entity:
And a ng-admin config as following:
Expected behavior:
42
TP & SP
Actual behavior:
42
TP & SP
The text was updated successfully, but these errors were encountered: