htmlHelper::code PHP Method

code() public method

Wrapper display computer-code samples
public code ( str $str ) : str
$str str
return str
    public function code($str)
    {
        return '<code>' . str_replace('  ', '&nbsp;&nbsp;', nl2br(get::htmlentities($str))) . '</code>';
    }