public function toHtml()
    {
        $this->setMeta("class", "vf__notes");

        $this->setConditionalMeta();
        $strOutput = "<div{$this->__getMetaString()}>\n";

        if (! empty($this->__header)) {
            $strOutput .= "<h4{$this->__getLabelMetaString()}>$this->__header</h4>\n";
        }

        if (! empty($this->__body)) {
            if (preg_match("/<p.*?>/", $this->__body) > 0) {
                $strOutput .= "{$this->__body}\n";
            } else {
                $strOutput .= "<p>{$this->__body}</p>\n";
            }
        }
        $strOutput .= "</div>\n";

        return $strOutput;
    }
public function toHtml()
    {
        $this->setMeta("class", "vf__notes");

        $this->setConditionalMeta();
        $strOutput = "<div{$this->__getMetaString()}>\n";

        if (! empty($this->__header)) {
            $strOutput .= "<h4{$this->__getLabelMetaString()}>$this->__header</h4>\n";
        }

        if (! empty($this->__body)) {
            if (preg_match("/<p.*?>/", $this->__body) > 0) {
                $strOutput .= "{$this->__body}\n";
            } else {
                $strOutput .= "<p>{$this->__body}</p>\n";
            }
        }
        $strOutput .= "</div>\n";

        return $strOutput;
    }
public function toHtml ( ) { $ this -> setMeta ( "class" , "vf__notes" ) ; $ this -> setConditionalMeta ( ) ; $ strOutput = "<div{$this->__getMetaString()}>\n" ; if ( ! empty ( $ this -> __header ) ) { $ strOutput .= "<h4{$this->__getLabelMetaString()}>$this->__header</h4>\n" ; } if ( ! empty ( $ this -> __body ) ) { if ( preg_match ( "/<p.*?>/" , $ this -> __body ) > 0 ) { $ strOutput .= "{$this->__body}\n" ; } else { $ strOutput .= "<p>{$this->__body}</p>\n" ; } } $ strOutput .= "</div>\n" ; return $ strOutput ; }
Render the Note

@return string Rendered Note
Render the Note