Skip to content

Commit

Permalink
These chars are permitted in html names, but not for IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Apr 10, 2024
1 parent dac483d commit 8472a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Html/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Helper
*/
public static function nameToId($string)
{
return rtrim(str_replace('--', '-', str_replace(['[', ']'], '-', $string)), '-');
return rtrim(str_replace('--', '-', str_replace(['[', ']', ':', '.'], '-', $string)), '-');
}

/**
Expand Down

0 comments on commit 8472a91

Please sign in to comment.