toXhtml() public static method

Convert a string to XHTML
public static toXhtml ( string $strString ) : string
$strString string The HTML5 string
return string The XHTML string
 /**
  * Convert a string to XHTML.
  *
  * @param string $strString The HTML5 string.
  *
  * @return string The XHTML string
  */
 public static function toXhtml($strString)
 {
     if (self::isStringUtilAvailable()) {
         return StringUtil::toXhtml($strString);
     }
     return \Contao\String::toXhtml($strString);
 }