PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_IT » Bug #7179

Backslashes will not printed out correctly

Details

Submitted2006-03-22 10:54 UTC
Fromnagios dot ql2005 at wizonet dot ch
Assignedpajoye
StatusBogus
PackageHTML_Template_IT
PHP Version4.3.4
OSLinux
Roadmaps(Not assigned)

Comments

[2006-03-22 10:54 UTC] nagios dot ql2005 at wizonet dot ch

Description:
------------
When I write

$mastertp->setVariable("DATA_FIELD_2","\\\\\\\\");

HTML_Template_IT will write this to the HTML code:

\\

When I write

$mastertp->setVariable("DATA_FIELD_2","\\\\");

HTML_Template_IT will write this to the HTML code:

\

3 of 4 Backslashes are missing in output

When I do it like this:

$test = "blabla \\\\\\\\ \' \"\"";
$mastertp->setVariable("DATA_FIELD_2",$test);

The parsed output looks like:
blabla \\ \' ""

Strange...