-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UIREQ-510 html-encode strings for react-to-print (#627)
* UIREQ-510 html-encode strings for react-to-print Values passed to `react-to-print` need to be escaped because of the way it generates its document under the hood. Without escaping, if we passed a value like `something<bad>very bad`, this would cause React to blow up when slips were generated with an error like ``` ERROR:Failed to execute 'createElement' on 'Document':The tag name provided ('bad') is not a valid name. ``` Refs UIREQ-510
- Loading branch information
Showing
2 changed files
with
4 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