Miss escaping when message body contains ' with as_redmine_ticket_link_filter

1. you post a message that contains ' (for example: &lt;strong&gt;μ's&lt;/strong&gt;)
2. ' is escaped to &amp;# 39;
3. as_redmine_ticket_link_filter processes # to &lt;a /&gt;
4. &&lt;a /&gt; is not well-formed xml, it causes exception
5. rescue catches the exception
6. original message returns from rescue block
7. you will get  &lt;strong&gt;μ's&lt;/strong&gt; as HTML string