src/Core/Convert.php
public static function raw2htmlname($val)
    {
        if (is_array($val)) {
            foreach ($val as $k => $v) {
                $val[$k] = self::raw2htmlname($v);
            }

            return $val;
        }

        return self::raw2att($val);
    }
public static function raw2htmlname($val)
    {
        if (is_array($val)) {
            foreach ($val as $k => $v) {
                $val[$k] = self::raw2htmlname($v);
            }

            return $val;
        }

        return self::raw2att($val);
    }
public static function raw2htmlname ( $ val ) { if ( is_array ( $ val ) ) { foreach ( $ val as $ k => $ v ) { $ val [ $ k ] = self :: raw2htmlname ( $ v ) ; } return $ val ; } return self :: raw2att ( $ val ) ; }
Convert a value to be suitable for an HTML ID attribute. Replaces non
supported characters with a space.

@see http://www.w3.org/TR/REC-html40/types.html#type-cdata

@param array|string $val String to escape, or array of strings

@return array|string
Convert a value to be suitable for an HTML ID attribute . Replaces non supported characters with a space .