code: protected function escape($value)
      {
          return $this->fixDoubleEscape(htmlspecialchars((string) $value, ENT_QUOTES | ENT_SUBSTITUTE, $this->charset));
      }
docs: Escapes an HTML value
  
  @param string $value
  
  @return string