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.
Md Naqui Qureshi
Use '' (two apostrophs)
Chris de Gelder
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'