How to Get Rich Text field in Plugin? I have a 'details' rich text field in my User section. How can i get it in my plugin controller in an array.
I tried getting it by 

 $userInfo[] = array(
  'username' =&gt; $user-&gt;name,
  'details' =&gt; $user-&gt;details,
)


I get an array like this

        Array
        (
        [0] =&gt; Array
            (
                [username] =&gt; Username
                [details] =&gt; Craft\RichTextData Object
                    (
                        [_pages:Craft\RichTextData:private] =&gt; 
                        [_rawContent:Craft\RichTextData:private] =&gt; Lorem Ipsum is a dummy text
                        [content:protected] =&gt; Lorem Ipsum is a dummy text
                        [charset:protected] =&gt; UTF-8
                    )
                )
            )
I'd be inclined to use the public methods for this.
$user->detail->getRawContent();
or
$user->detail->getParsedContent();
etc.