Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#120 No escaping \$ or \\

closed-out-of-date
Template (13)
5
2004-04-21
2003-05-08
Anonymous
No

This is for the template engine. When placing a "\" or
a "$" in a string and assigning it to a varialbe, even if
you precede the chars with an escape character "\",
PHP is still attempting to evaluate what it believes to be
a variable after the $.

Ex.

$t->set_var("money", "\$20.95");

OUTPUTS .95 not $20.95

Discussion

  • Richard Archer
    Richard Archer
    2004-04-21

    Logged In: YES
    user_id=279311

    This was fixed a long time ago. Grab the latest template.inc
    from CVS or upgrade to a later release.

     
  • Richard Archer
    Richard Archer
    2004-04-21

    • labels: --> Template
    • assigned_to: nobody --> richardarcher
    • status: open --> closed-out-of-date