- Member | 1
I am using Nette for a project and have run into a problem.
When using the AppForm and the label contains a ‘&’ it appears that
htmlspecialchars is done twice.
'&' appears in the source as
&amp; and the browser interprets this
I am guessing that htmlspecialchars is applied once in the form component and again in the html table component.
This is how I create the input:
<?php $form = new AppForm($this, $name); $form->addText('firstlastname', 'firstname & lastname') ?>
and this is how I call it in the template:
it makes no difference using ! or not.
I have tried this in a couple of our forms and they all show the same behaviour.
Because my Czech language skills are not very good, it is hard for me to search the forums and documentation, although I tried.
How can I fix this?
php version 5.2.11
Nette version: 464 released on 2009/07/24 17:52:50