Switch to evalHtmlId helper
This commit is contained in:
parent
91a7ea9da2
commit
766875fac5
|
|
@ -140,8 +140,7 @@ class FilterScope
|
|||
if ($this->idPrefix)
|
||||
$id = $this->idPrefix . '-' . $id;
|
||||
|
||||
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
|
||||
return $id;
|
||||
return Str::evalHtmlId($id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -285,7 +285,6 @@ class FormField
|
|||
if ($this->idPrefix)
|
||||
$id = $this->idPrefix . '-' . $id;
|
||||
|
||||
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
|
||||
return $id;
|
||||
return Str::evalHtmlId($id);
|
||||
}
|
||||
}
|
||||
|
|
@ -131,9 +131,7 @@ abstract class WidgetBase
|
|||
if ($suffix !== null)
|
||||
$id .= '-' . $suffix;
|
||||
|
||||
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
|
||||
|
||||
return $id;
|
||||
return Str::evalHtmlId($id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue