...
Info |
---|
Tapestry 4 users will note that expansions are a concise, easy replacement for the Insert component, and for the <span key="..."> directive. |
Note that expansions escape any HTML reserved characters. Specifically, any less-than (<), greater than (>) and ampersand (&) are replaced with <, > and & respectively. That is usually what you want. However, if your property contains HTML that you want rendered as raw markup, you can use the OutputRaw component instead, like this: <t:OutputRaw value="someContent"/>
where someContent
is a property containing HTML markup.
Caution: if the content comes from an untrusted source (like a public user), be sure to filter it before providing it to OutputRaw. Otherwise you've got a potential cross-site scripting vulnerability.
Component Elements
An embedded component is identified within the template as an element in the t: namespace. Example:
...