public function escapeString($str, $link = null) { if ($link === null) { $link = $this->getLink(); } if ($this->_extension === null) { return $str; } return $this->_extension->escapeString($link, $str); }