Quantcast

How do you escape double quotes inside the strings.replace method?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How do you escape double quotes inside the strings.replace method?

airetsnym
let's say I have a string that includes double quotes: "jane"
How do I remove double quotes using the strings.replace(target, before, after) method?

So far this:
<span th:text="${#strings.replace(number_str,'\"',''}"></span>
does not work.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do you escape double quotes inside the strings.replace method?

Metroids
I couldn't find a way to escape them... that being said, this worked for me:

<span th:text="${#strings.replace(number_str,'&quot;',''}" />
Loading...