Switch to evalHtmlId helper

This commit is contained in:
Sam Georges 2014-09-06 21:57:23 +10:00
parent 91a7ea9da2
commit 766875fac5
3 changed files with 3 additions and 7 deletions

View File

@ -140,8 +140,7 @@ class FilterScope
if ($this->idPrefix)
$id = $this->idPrefix . '-' . $id;
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
return $id;
return Str::evalHtmlId($id);
}
}

View File

@ -285,7 +285,6 @@ class FormField
if ($this->idPrefix)
$id = $this->idPrefix . '-' . $id;
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
return $id;
return Str::evalHtmlId($id);
}
}

View File

@ -131,9 +131,7 @@ abstract class WidgetBase
if ($suffix !== null)
$id .= '-' . $suffix;
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
return $id;
return Str::evalHtmlId($id);
}
/**