title: Custom HTML - SSRS
body: <p>I am trying to write out custom HTML in an SSRS report.  If I try to put the html in a placeholder (selecting Markup type = "HTML - Interpret HTML tags as styles"), SSRS will strip out any unsupported tags.  Therefore, I am trying to write it out in custom code.  My expression is as follows:</p>
  
  <pre><code>=Code.WriteHTML("&lt;b&gt;ryantest&lt;/b&gt;")
  </code></pre>
  
  <p>My custom code is as follows:</p>
  
  <pre><code>Function WriteHTML(ByVal Msg As String) As String
  If Not (IsNothing(System.Web.HttpContext.Current)) Then
                  System.Web.HttpContext.Current.Response.Write(Msg)
  End If
  End Function
  </code></pre>
  
  <p>When I try to view the report, I get the following error:</p>
  
  <pre><code>An error occurred during client rendering.
  Exception of type 'System.OutOfMemoryException' was thrown. 
  </code></pre>
  
  <p>Any ideas?</p>