Share » Forums » Setup & design » Tpl and string output problem in html...

Tpl and string output problem in html tag.

Tpl and string output problem in html tag.

Monday 11 July 2011 7:54:40 am - 3 replies

Modified on Monday 11 July 2011 8:25:51 am by Stefano Gattuso

Author Message

Nicolas Lescure

Monday 11 July 2011 8:54:24 am

Strange. So strange I just tried.

Never believe "inspect element" of your browser.

Look at the whole sourrce, and you'll see the expected result.

<input type="text"  name="a" value=first second>

{* You need that : *}

<input type="text"  name="a" value="{$x}">

Stefano Gattuso

Monday 11 July 2011 12:06:58 pm

well u true :) i just miss the double qoute XD sorry i feel so dummy XD

[ ] http://www.buby.it

André R.

Tuesday 12 July 2011 12:31:17 am

Also make sure you use wash operator on all output, it will make sure quote's are escaped and same with html.

As in:

<input type="text"  name="a" value="{$x|wash()}">

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu