Displaying special character in String

1
One of the entity is having attribute as message in that message I want to display the message in String exactly as below, but the problem is it is not taking apostroph for eg. 'To' and From 'To' date must be after 'From' date.
asked
2 answers
1

Use '' (two apostrophs)

answered
0

You need to escape the apostrophe, as you can read in the general description here. Therefore, you should set the value to: '''To'' date must be after ''From'' date'

answered