in reply to Escaping double quotes in complete document
This protects you from Cross-Site-Scripting attacks and handles the double quote issue.my $tt = Template->new(); $tt->process( \q[<html> <!--Foo--> <input type="text" name="mytext" id="mytext" value="[% soap_result % +]"/> <!--Bar--> </html>], { soap_result => $soap_result }) || die $tt->error(), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Escaping double quotes in complete document
by haukex (Archbishop) on Jun 27, 2017 at 14:44 UTC | |
by holli (Abbot) on Jun 27, 2017 at 14:49 UTC |