code: public function str($default = null, $escape = true)
      {
          $val = $this->val($default);
          if (is_scalar($val)) {
              $val = (string)$val;
          } else {
              $val = print_r($this->value, true);
          }
          return $escape && $this->escaper ? $this->escaper->escapeHtml($val) : $val;
      }
docs: Returns val() as an escaped string that can be used inside HTML tags.
  
  @param mixed $default
  @param bool $escape
  @return string