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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(): add option to html escape all values
Apply an additional functionaly to an interpolator being responsible for escaping interpolated params or using a sanitation service when working with them. For the default interpolation service, the usage will be: ```javascript // config translationProvider.useSanitizedValues(true); // scope $scope.user = {link: '/user', name: '<h1>Big User</h1>'}; ``` and ```html <a href="{user.link}">{user.name}</a> ``` will results into the html ```html <a href="/user"><h1>Big User</h1></a> ```
- Loading branch information
Showing
3 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters