I want a text input that displays the string: ±50ppm/°C
I can do that with a line in UI.R:
textInput("tco","Tempco", value = "\u00B150 ppm/\u00B0C")
However, I have to create the value string programmatically. And the data source I'm using gives me a starting string of:
I've been trying all sorts of patterns in gsub to get my second string to turn into the string I need for the textInput but no luck. I can't get anything to produce the single backslash. I'm sure there's some simple way to do this that I'm missing.
Anyone know the answer?
(Oddly, standard HTML escape characters work in the label of a textInput, but not the value, where they are rendered literally)