-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to keep all attributes as strings
When data is coming from user supplied HTML, I would expect all attributes to come in as strings. Instead this library converts boolean strings "true" and "false" to boolean primitives. My use-case is very heavy on custom components, many of which do string operations on the incoming data. For example we have one that passes in a a path to get properties off of an object, that path can be the string literal values "true"/"false". It would be nice to be able to toggle off the feature that converts booleans.
- Loading branch information
1 parent
3a04b9e
commit 08f85bd
Showing
3 changed files
with
67 additions
and
6 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
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