CodeIgniter Forums
for_validation prepping my data without asking? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: for_validation prepping my data without asking? (/thread-33211.html)



for_validation prepping my data without asking? - El Forum - 08-18-2010

[eluser]smick[/eluser]
So I just noticed that global_xss_filtering is turned on for the site I'm working on, and quotes are being converted to what looks like html entities.

I'm writing an edit form, which repopulates from the database, but in the text boxes the html entities of course aren't rendering in text boxes, is there a way to convert html entities back to unicode?

I tried the php html_entity_decode() function but it isn't working, and I'm not quite sure what CI is converting quotes to.

Thanks for any help!


for_validation prepping my data without asking? - El Forum - 08-18-2010

[eluser]smick[/eluser]
Ok, so I disabled global xss filtering and things are still getting converted into html entities.

Does the form_validation class automatically do this? How can I disable it so I can keep pure utf-8? This sucks.