For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > August 2005 > Escaping { in assign statement (not using {literal})









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Escaping { in assign statement (not using {literal})
Ivo Jansch

2005-08-10, 5:07 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

how can I make this work:

{assign var="somevar" value="this: {} is a tag"}

I need to escape the {} somehow, so it doesn't break the assign tag.

Greetings,
Ivo

- --
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC+hHY95NUnGFZm9cRAsdUAJ91VIOWOIgc
u7pF++SUD7BQSerxbQCfYdlz
iyhYbgIpA9id2vWzQl5sU7Q=
=0+dH
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com