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

<p>This:    </p>

<pre><code>\#\#
</code></pre>

<p>prints:   </p>

<pre><code>\#\#
</code></pre>

<p>I would like:   </p>

<pre><code>## 
</code></pre>

[{'answer_id': 53747, 'author': 'Thomas', 'author_id': 4980, 'author_profile': 'https://Stackoverflow.com/users/4980', 'pm_score': 3, 'selected': False, 'text': '<p>Maybe, the following site helps? <a href="http://velocity.apache.org/tools/1.4/generic/EscapeTool.html" rel="nofollow noreferrer">http://velocity.apache.org/tools/1.4/generic/EscapeTool.html</a></p>\n'}, {'answer_id': 58427, 'author': 'Sergio del Amo', 'author_id': 2138, 'author_profile': 'https://Stackoverflow.com/users/2138', 'pm_score': 2, 'selected': False, 'text': '<p>Add the esc tool to your toolbox and then you can use ${esc.hash}</p>\n'}, {'answer_id': 64246, 'author': 'Nathan Bubna', 'author_id': 8131, 'author_profile': 'https://Stackoverflow.com/users/8131', 'pm_score': 6, 'selected': False, 'text': "<p>If you don't want to bother with the EscapeTool, you can do this:</p>\n\n<pre><code>#set( $H = '#' )\n$H$H\n</code></pre>\n"}, {'answer_id': 7093929, 'author': 'alvi', 'author_id': 644958, 'author_profile': 'https://Stackoverflow.com/users/644958', 'pm_score': 6, 'selected': False, 'text': '<p>this:</p>\n\n<pre><code>#[[\n##\n]]#\n</code></pre>\n\n<p>will yield:</p>\n\n<pre><code>##\n</code></pre>\n\n<p>anything within #[[ ... ]]# is unparsed.</p>\n'}, {'answer_id': 11053895, 'author': 'gregm', 'author_id': 108495, 'author_profile': 'https://Stackoverflow.com/users/108495', 'pm_score': 0, 'selected': False, 'text': '<p>The set technique is a good way to get around any characters you need escaping, like if you want to have $name followed by "_lastname" then you can do:</p>\n\n<pre><code>set ($n = \'_lastname)\n</code></pre>\n\n<p>and have this in your template: </p>\n\n<pre><code>$name$n\n</code></pre>\n\n<p>and it\'s all good.</p>\n'}, {'answer_id': 46972395, 'author': 'Ankit Raonka', 'author_id': 5027628, 'author_profile': 'https://Stackoverflow.com/users/5027628', 'pm_score': 2, 'selected': False, 'text': '<p>${esc.h} will output # as per </p>\n\n<p><a href="http://velocity.apache.org/tools/1.4/generic/EscapeTool.html" rel="nofollow noreferrer">this link</a></p>\n'}]
['https://Stackoverflow.com/questions/53744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2138/']