Re: [QUICKFORM] Freeze
| From: | Justin Patrin | Date: | Fri, 27 May 2005 16:28:14 +0000 |
| Subject: | Re: [QUICKFORM] Freeze | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19387@lists.php.net to get a copy of this message | ||
On 5/20/05, Obsessed <Obsessed@dayofdefeat.be> wrote:
> Hi,
>
> I'm creating a page that let people make newsposts.
> After the first submit I want them to get a page with a preview of their
> submitted item, and then they can submit it or go back and alter it.
>
> I'm displaying the preview by using freeze() on my form.
> This works very nicely but I only have on problem.
> If users used html in their post to give it some layout, I'm getting
> those tags in the preview as text instead of them 'working' if you know
> what I mean.
This is as it should be. The text is run through htmlentities to make
sure that what you typed is what you see. This is also done in order
to stop XSS attacks.
If you want to display the posted data as HTML and not text, you'll
have to output it yourself.
>
> Is there any way to display correct html in form elements while in
> frozen state?
> Or any good alternative for this problem?
>
> Thanks in advance
>
--
Justin Patrin