pub fn clean_id(obj: Value) -> String
Expand description

Prepares a string for use as a valid HTML ID.

@see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Utility%21Html.php/function/Html%3A%3AgetId

id="{{ 'A B_c-d[e]f  %$*#€  éèà G____H'|clean_id }}"
  -> id="a-b-c-d-e-f-g-h"