code/Core/Extensions/DBField.php
public function HTMLID($lowercase = false) {
        $str = trim(str_replace(' ', '-', ucwords(str_replace(['_', '-', '/'], ' ', $this->owner->value))), '-');
        return $lowercase ? strtolower($str) : $str;
    }
public function HTMLID($lowercase = false) {
        $str = trim(str_replace(' ', '-', ucwords(str_replace(['_', '-', '/'], ' ', $this->owner->value))), '-');
        return $lowercase ? strtolower($str) : $str;
    }
public function HTMLID ( $ lowercase = false ) { $ str = trim ( str_replace ( ' ' , '-' , ucwords ( str_replace ( [ '_' , '-' , '/' ] , ' ' , $ this -> owner -> value ) ) ) , '-' ) ; return $ lowercase ? strtolower ( $ str ) : $ str ; }
Convert value to an appropriate HTML ID
@param bool $lowercase
@return string
Convert value to an appropriate HTML ID