public function shortcodes($content)
 {
     $result = Shortcodes::do_shortcode($content);
     // If it's Rich Text Field content then we need to return a RichTextData object.
     // Returning a simple string results in escaped html tags.
     if (is_object($content) && get_class($content) === 'Craft\\RichTextData') {
         $charset = craft()->templates->getTwig()->getCharset();
         $content = new RichTextData($result, $charset);
     } else {
         $content = $result;
     }
     return $content;
 }