title: Integrating MarkItUp rich text editor preview with ASP.NET MVC app
body: <p>I'm testing out the <a href="http://markitup.jaysalvat.com/" rel="nofollow noreferrer">MarkItUp! rich text editor</a> in a MVC app, and everything is working great with the exception of the preview.  In the settings (set.js), there is a <code>previewParserPath</code> property ("path to your <a href="http://en.wikipedia.org/wiki/Bbcode" rel="nofollow noreferrer">BBCode</a> parser").  I'm not exactly sure what this is looking for in terms of proper integration with the MVC app.  </p>
  
  <p>I believe that this property is what allows the rendering of the text to appear as HTML rather than <code>[code][/code]</code> etc.</p>
  
  <p>In my controller, I have created the following:</p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Get)]
  [ValidateInput(false)]
  public String ParseCode(string toBeParsed)
  {
      return BBCode.ToHtml(toBeParsed);
  }
  </code></pre>