Welcome Guest, Not a member yet? Register   Sign In
Apostrophes getting converted to html entities
#1

[eluser]Oblong[/eluser]
Hello.

I'm having trouble with form validation with data that includes an apostrophe - it gets converted to an html entity.

The validation I'm using:

Code:
$this->form_validation->set_rules('surname','Surname','required|trim|xss_clean|max_length[255]');

If, for example, I enter "O'Reilly" in that field, it shows up as

Code:
O'Reilly

in the DB.

Any advice appreciated.


Messages In This Thread
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 06:31 AM
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 08:43 AM
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 10:38 AM
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 11:01 AM
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 11:12 AM
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 12:20 PM
Apostrophes getting converted to html entities - by El Forum - 03-18-2010, 01:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB