My editor works great until someone attempts to use a ' in their text. If they do, the data is not saved. For example if I use the word can not, it saves, if I use the word can't it will not save. Is this a problem with the editor or my database type?
Mon, 03/19/2007 - 07:54
#1
RE: Problems with '
RE: Problems with '
RE: Problems with '
function EncodeConfig( $valueToEncode )
{
$chars = array(
'&' => '%26',
'=' => '%3D',
'"' => '%22' ) ;
return strtr( $valueToEncode, $chars ) ;
}
I tried modifying this file as follows:
function EncodeConfig( $valueToEncode )
{
$chars = array(
'&' => '%26',
'=' => '%3D',
'\'' => '%29',
'"' => '%22' ) ;
return strtr( $valueToEncode, $chars ) ;
}
but it didn't seem to work. Should this work and I'm jut doing ti wrong or is this not the place to try and do it?
Any suggestions much appreciated.
Bill