Greetings All,

Can a Template escape the HTML of an object's properties when it
evaluates?  E.g.

var tpl = new Template('<p>No HTML #{prop}.</p>');

tpl.evaluate({prop: '2 < 3'}); // BAD! displays <p>No HTML 2 < 3</p>

can this display: <p>No HTML 2 &lt; 3</p>
?

Thanks for any pointers.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to