On Wed, Nov 19, 2003 at 09:30:27AM -0800, Randal L. Schwartz wrote:
> >>>>> "Jesse" == Jesse Sheidlower <[EMAIL PROTECTED]> writes:
> 
> Jesse> Yet continues not to work "in the field": The following TT code:
> 
> Jesse>   <tr><td class="label">Title</td> [% book_ref.title = 'The "Good" War' %]
> Jesse>   <td>[% CGI.textfield({name => "title", size => 60, value => 
> book_ref.title}) %]</td>
> Jesse>   </tr>
> 
> Jesse> generates the following HTML when processed in a CGI script with 
> $tt->process, etc.:
> 
> Jesse>   <tr><td class="label">Title</td> 
> Jesse>   <td><input type="text" name="title" value="The "Good War size="60" /></td>
> Jesse>   </tr>
> 
> It's possible that CGI "autoescape" flag has been cleared by some
> part of the handler. See what the value of $self->{escape} is, in both
> instances.  $self->autoEscape() returns the previous value, so you
> can test that, and set it back.

Yup, that was it.

No idea why the value was being changed, but setting it to true after
the USE CGI does the trick.

Thank you.

Jesse Sheidlower

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to