Escaping Special Chars and the PHP FusionCharts class
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Escaping Special Chars and the PHP... Expand / Collapse
Author
Message
Posted 3/30/2008 9:39:45 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/30/2008 9:33:18 PM
Posts: 1, Visits: 1
Hi, I'm using the FusionCharts PHP class to generate my charts from database queries.

All working well except when the data contains special chars (namely < > and ')

I've noticed in the FusionCharts class source code it DOES try and escape them, yet when it tries to render the chart I receive Invalid XML error.

I've escaped them in my SQL, and the chart renders OK.

Would rather the FusionCharts class take care of it though.

Any suggestions?

- Scott
Post #5368
Posted 3/31/2008 5:47:00 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 10/11/2008 2:58:00 AM
Posts: 811, Visits: 1,289
Hi,

Due to XML restrictions, you can not use < character or < anywhere in FusionCharts Free.

To use > you need to use %26gt%3B for dataXML method.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #5379
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:12pm


Execution: 0.125.