Function dilla_renderer::engine::clean_id
source · pub fn clean_id(obj: Value) -> String
Expand description
Prepares a string for use as a valid HTML ID.
id="{{ 'A B_c-d[e]f %$*#€ éèà G____H'|clean_id }}"
-> id="a-b-c-d-e-f-g-h"