Normalise classname to remove non alpha chars

This commit is contained in:
Chris
2018-10-29 15:12:47 +00:00
parent 21c1401859
commit 2507cda94c
4 changed files with 21 additions and 7 deletions

View File

@@ -33,4 +33,12 @@ function title_color($hex)
} else {
return ' white';
}
}
}
function className($name)
{
$name = preg_replace('/\PL/u', '', $name);
return $name;
}