Welcome Guest, Not a member yet? Register   Sign In
Dealing with quotes
#1

[eluser]megabyte[/eluser]
Is there a right way to do this besides commenting this out of form_prep()

//$str = str_replace(array("'", '"'), array("'", """), $str);

My data gets inserted intot he database and replaces the quotes, then when it comes back into the text area for editing it shows up as

that#39;s

instead of

that's

same with double quoted strings.

I realize it would look fine in html, but is there a function or setting in codeigniter so this doesn't happen?


Messages In This Thread
Dealing with quotes - by El Forum - 04-30-2010, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB