-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow setting
escape
option per parameter replacing
Allows to use HTML inside the parameters like the following example. This will still escape the user input but keep the HTML tags for `a` and `end_a`. ```js t( 'app', 'Click: {a}{userInput}{end_a}', { a: { value: '<a>', escape: false, }, userInput, end_a: { value: '</a>', escape: false, }, }, ) ``` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
- Loading branch information
Showing
2 changed files
with
68 additions
and
5 deletions.
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