From 8472a91b7510ce341c5e27ff9deb26e31ecf71e1 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 10 Apr 2024 10:29:39 +1000 Subject: [PATCH] These chars are permitted in html names, but not for IDs --- src/Html/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Html/Helper.php b/src/Html/Helper.php index d1912b5dc..0b4f3eadd 100644 --- a/src/Html/Helper.php +++ b/src/Html/Helper.php @@ -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)), '-'); } /**