public function parse($field, $as = 'parsed')
	{
		switch (strtolower($as))
		{
			case 'parsed':
				$property = "_{$field}Parsed";

				if (!isset($this->$property))
				{
					$this->$property = Html::content('prepare', $this->get($field, ''));
				}

				return $this->$property;
			break;

			case 'raw':
			default:
				$content = stripslashes($this->get($field, ''));
				return preg_replace('/^(<!-- \{FORMAT:.*\} -->)/i', '', $content);
			break;
		}
	}
public function parse($field, $as = 'parsed')
	{
		switch (strtolower($as))
		{
			case 'parsed':
				$property = "_{$field}Parsed";

				if (!isset($this->$property))
				{
					$this->$property = Html::content('prepare', $this->get($field, ''));
				}

				return $this->$property;
			break;

			case 'raw':
			default:
				$content = stripslashes($this->get($field, ''));
				return preg_replace('/^(<!-- \{FORMAT:.*\} -->)/i', '', $content);
			break;
		}
	}
public function parse ( $ field , $ as = 'parsed' ) { switch ( strtolower ( $ as ) ) { case 'parsed' : $ property = "_{$field}Parsed" ; if ( ! isset ( $ this -> $ property ) ) { $ this -> $ property = Html :: content ( 'prepare' , $ this -> get ( $ field , '' ) ) ; } return $ this -> $ property ; break ; case 'raw' : default : $ content = stripslashes ( $ this -> get ( $ field , '' ) ) ; return preg_replace ( '/^(<!-- \{FORMAT:.*\} -->)/i' , '' , $ content ) ; break ; } }
Parses content string as directed

@param   string  $field  The field to parse
@param   string  $as     The format to return state in
@return  string
@since   2.0.0
Parses content string as directed