How to escape a # in velocity

Viewed 27880

I would like to know how can i escape a # in velocity. Backslash seems to escape it but it prints itself as well

This:

\#\#

prints:

\#\#

I would like:

## 
6 Answers

If you don't want to bother with the EscapeTool, you can do this:

#set( $H = '#' )
$H$H

Add the esc tool to your toolbox and then you can use ${esc.hash}

Related