original_string: function esc($str) {
  		if (!$this->special)
  			$this->special=array(
  				'...'=>'&hellip;',
  				'(tm)'=>'&trade;',
  				'(r)'=>'&reg;',
  				'(c)'=>'&copy;'
  			);
  		foreach ($this->special as $key=>$val)
  			$str=preg_replace('/'.preg_quote($key,'/').'/i',$val,$str);
  		return htmlspecialchars($str,ENT_COMPAT,
  			Base::instance()->get('ENCODING'),FALSE);
  	}
code: function esc($str) {
  		if (!$this->special)
  			$this->special=array(
  				'...'=>'&hellip;',
  				'(tm)'=>'&trade;',
  				'(r)'=>'&reg;',
  				'(c)'=>'&copy;'
  			);
  		foreach ($this->special as $key=>$val)
  			$str=preg_replace('/'.preg_quote($key,'/').'/i',$val,$str);
  		return htmlspecialchars($str,ENT_COMPAT,
  			Base::instance()->get('ENCODING'),FALSE);
  	}
code_tokens: function esc ( $ str ) { if ( ! $ this -> special ) $ this -> special = array ( '...' => '&hellip;' , '(tm)' => '&trade;' , '(r)' => '&reg;' , '(c)' => '&copy;' ) ; foreach ( $ this -> special as $ key => $ val ) $ str = preg_replace ( '/' . preg_quote ( $ key , '/' ) . '/i' , $ val , $ str ) ; return htmlspecialchars ( $ str , ENT_COMPAT , Base :: instance ( ) -> get ( 'ENCODING' ) , FALSE ) ; }
docstring: Convert characters to HTML entities
  @return string
  @param $str string
docstring_tokens: Convert characters to HTML entities