Hi Andreas,

> what's the best way to HTML-escape variables, preventing issues when I
> code $output and output in fact contains HTML tags (<b>hello world</b>
> should NOT be printed in bold but appear as it appears in this text)?
> 
> In JSP ${output} and <c:out value="${output}"/> is automatically
> escaped; how can I handle this with Velocity?

You can use the EscapeTool.  :)
$esc.html($output)
    http://wiki.apache.org/jakarta-velocity/EscapeTool

Best regards,
-- Shinobu

--
Shinobu "Kawai" Yoshida <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to