$ 0 0 Your helper needs to return IHtmlString and not just string. This tells razor that the string is already html-encoded and shouldn't be encoded again.