CodeIgniter Forums

Full Version: for_validation prepping my data without asking?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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!

El Forum

[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.