Open AlexRadch opened 2 months ago
Tagging subscribers to this area: @dotnet/area-system-runtime See info in area-owners.md if you want to be subscribed.
When I create a Format using input text
Using user input as a part of formatting template doesn't sound like a good idea. Though string interpolation is too simple to be vulnerable from injection, it's can also be hard to ensure things are correct.
Background and motivation
When I create a Format string from user-entered text, I need a method to escape the curly braces "{" and "}" so that they are not treated as formatting elements.
Run code on sharplab.
API Proposal
API Usage
Alternative Designs
No response
Risks
No response