Re: [studs-user] Text field specialchars
Status: Beta
Brought to you by:
mojavelinux
From: Earnie B. <ea...@us...> - 2006-12-18 15:28:38
|
Quoting Juan Carlos Rey Anaya <jc...@um...>: > Juan Carlos Rey Anaya wrote: >> As I don't know is this behabiour is configurable, I have recurred to a >> home-made remedy :-) >> function unescapeString($string, $charsToUnescape = array('\''), > >{...} > > Yesterday I had a glimpse at string python docs, I didn't know there > were a function 'stripslashes' that does the same although stud's one > is more generic. > > Also there is a function called addslashes. I'm not sure if you made a mistake by saying python docs or if you actually were looking there but Studs is PHP. Based on http://us2.php.net/stripslashes the documentation seems to indicated that stripslashes should be used on values as a result of addslashes. Earnie Boyd -- Please post responsibly: * Use text posts instead of html; many list members just trash mail with html. * Do not use multipart mime to send both text and html versions. * Do not top post replies; post inline with the parts you are responding to. * Trim the post replies; remove irrelevant information from the quoted article. * Original posters: ** Provide small complete examples of the problem. ** Provide the full command that produced errors. ** Provide the versions of the software used. |