title: Any way to pass CHttpException an HTML message string?
body: <p>I'm handling 404s with the line CHttpException(404, $message), and the $message variable is an HTML string to achieve some styling. But CHttpException() encodes my $message, rendering the HTML as a useless escaped string. Is there any way around the string encoding of CHttpException, in order to output HTML?</p>
  
  <pre><code>/**
  * From PostsController.php
  */
  
  // ...
  
  public function actionCategory($id)
  {
  
     $categoryModel = Categories::model()-&gt;findByAttributes(array('idCategory'=&gt;$id));
  
      if($categoryModel===null){
  
          $message = "&lt;div class=\"alert alert-danger\"&gt;Page Not Found&lt;/div&gt;";
          throw new CHttpException(404, $message);
              return;
          }
  
      // ...
  </code></pre>