Sign in to follow this  
IDForums

How to escape single quote in XML?

Recommended Posts

My JSP File contains below string. I need to display "Single Day Historic Peak vs. Today's Volume" as Caption for one of my chart. How do I escape single quote in the word Today's?

 

 

 

HistoricPeakXML = "";

 

 

 

Thanks.

Share this post


Link to post
Share on other sites

Hi

Welcome To FusionCharts And JSP Forum!

Please use ' for single quote in xml string. Your xml string will thus be:

HistoricPeakXML = "<chart caption='Single Day Historic Peak vs. Today's Volume' palette='4' animation='1' slantLabels='1' bgColor='FFFFFF,E1E1E1' labelDisplay='rotate' rotateValues='1' placeValuesInside='1' showBorder='0'>";

For further information on using special characters, refer to the following page in the documentation:

http://www.fusioncharts.com/docs/Contents/SpChar_Apos.html

regards,

Srividya

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this