Tuesday, January 26, 2010

Re: Displaying apostrophes

Do not use Sanitize or h() or something similar before save. Do not
use them twice on output.

On Jan 26, 6:05 pm, Céryl <c.a.h.wilt...@student.tue.nl> wrote:
> Hi all,
>
> I have currently developed a new problem in my website.
> When storing a name into the database wich contains an apostrophe
> ( ' ), it stores this in the DB as &#39; the ASCII code for it.
> (that's Amperand, Poundsign, 39, semicolon in case googlegroups parses
> it also)
>
> Now some of my pages parse this correctly and display the apostrophe,
> some display the ASCII code. I can't find what makes it display it
> differently on some pages and not on the others... Even escaping it
> with a \ just makes it display \' on one page and \$#39 on the other.
>
> Both get the same data through the same model... Well, it's just
> simply the same site, just consistently different per page... Any
> clues what might be the problem?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: