This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Disable SanitizeValueStrategy for one $translate call #1297
Comments
Having I've been using the following as a workaround:
|
+1 Having same issue |
Ok. I have tagged this as "Contribution Welcome". (hint-hint). |
spiroid
added a commit
to spiroid/angular-translate
that referenced
this issue
Jul 27, 2016
Sometimes non html messages need to be translated. For example in notification popups, etc. The only solution as for now, was to the disable sanitize strategy globally. This modification add a sanitizeStrategy parameter to the $translate.instant function to allow to override this only for one call. Relates angular-translate#1297
spiroid
added a commit
to spiroid/angular-translate
that referenced
this issue
Jul 28, 2016
Sometimes non html messages need to be translated. For example in notification popups, etc. The only solution as for now, was to the disable sanitize strategy globally. This modification add a sanitizeStrategy parameter to the $translate.instant function to allow to override this only for one call. Relates angular-translate#1297
spiroid
added a commit
to spiroid/angular-translate
that referenced
this issue
Jul 28, 2016
Sometimes non html messages need to be translated. For example in notification popups, etc. The only solution as for now, was to the disable sanitize strategy globally. This modification add a sanitizeStrategy parameter to the $translate.instant function to allow to override this only for one call. Relates angular-translate#1297
spiroid
added a commit
to spiroid/angular-translate
that referenced
this issue
Jul 28, 2016
Sometimes non html messages need to be translated. For example in notification popups, etc. The only solution as for now, was to the disable sanitize strategy globally. This modification add a sanitizeStrategy parameter to the $translate.instant function to allow to override this only for one call. Relates angular-translate#1297
spiroid
added a commit
to spiroid/angular-translate
that referenced
this issue
Sep 22, 2016
Sometimes non html messages need to be translated. For example in notification popups, etc. The only solution as for now, was to the disable sanitize strategy globally. This modification add a sanitizeStrategy parameter to the $translate.instant function to allow to override this only for one call. Relates angular-translate#1297
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I configured
translateProvider
with'sanitize'
strategy and want to keep it to prevent injection.There is a chart in my application draw using a canvas, I want to disable (or change) the
SanitizeValueStrategy
when I call$translate()
to retrieve text (series names) that will be written on the canvas.I don't know if this is already possible, otherwise it could be great to have a parameter for SanitizeStrategy or a dedicated function like
$translate.unsafe()
ignoring sanitize.The text was updated successfully, but these errors were encountered: