Example #1
0
File: Title.php Project: jnjxp/meta
 /**
  * getTitleString
  *
  * @return string
  *
  * @access public
  */
 public function getTitleString()
 {
     $sep = $this->titleSeparator;
     $raw = trim(implode($sep, [implode($sep, $this->titles), $this->siteTitle]), $sep);
     return $this->escaper->html($raw);
 }
Example #2
0
 /**
  *
  * Static escaping for HTML body and quoted HTML attribute context.
  *
  * @param string $raw The raw string.
  *
  * @return string The escaped string.
  *
  */
 public static function h($raw)
 {
     return static::$escaper->html($raw);
 }