To escape sigle quote in th:text or th:utext we need to use two single quotes.
<p th:utext="${'What''s up'}"></p>
the above one will output the following
<p>What's up</p>
in this line we have used two single quotes after the word What
To escape sigle quote in th:text or th:utext we need to use two single quotes.
<p th:utext="${'What''s up'}"></p>
the above one will output the following
<p>What's up</p>
in this line we have used two single quotes after the word What
Post a Comment
Post a Comment