/** * @param $rule * @return string * @throws \JBZoo\SimpleTypes\Exception */ public function html($rule = null) { $rule = $rule ? $this->_parser->checkRule($rule) : $this->_rule; $this->log('Formatted output in "' . $rule . '" as "html"'); return $this->_formatter->html(array('value' => $this->val($rule), 'rule' => $rule), array('value' => $this->_value, 'rule' => $this->_rule), array('id' => $this->_uniqueId)); }