Controlling HTML Autoescaping
Controlling HTML Autoescaping
By default, if you use a special HTML character such as
>, < or & as the label or value of a button, it will be escaped using
the appropriate HTML escape sequence (e.g. >). This lets you use anything
at all for the text of a form field without worrying about breaking the HTML
document. However, it may also interfere with your ability to use special
characters, such as Á as default contents of fields. You can turn this
feature on and off with the method autoEscape().
Use
$query->autoEscape(undef);
to turn automatic HTML escaping off, and
$query->autoEscape('true');
to turn it back on.
|