Skip to content

Commit

Permalink
Merge pull request #52 from synacor/bugfix/safer-markup
Browse files Browse the repository at this point in the history
Remove use of dangerouslySetInnerHTML
  • Loading branch information
pl12133 authored Feb 9, 2021
2 parents 49621bf + a37c60c commit 613d22a
Show file tree
Hide file tree
Showing 6 changed files with 13,037 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ It "renders" out any `<Text />` values in its child's props.
- `props.id` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Key to look up in intl dictionary, within any parent scopes (`$scope1.$scope2.$id`)
- `props.fields` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Values to inject into template `{{fields}}`. Values in the `fields` object will be coerced to strings, with the exception of `<Text/>` nodes which will be resolved to their translated value (optional, default `{}`)
- `props.plural` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Integer "count", used to select plural forms
- `context` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
- `context.intl` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** [internal] dictionary and scope info
- `props.children`
- `props.props` **...any**

#### Examples

Expand Down
Loading

0 comments on commit 613d22a

Please sign in to comment.