instead of exposing ``tagfill``, I would expose a hash of HTML attributes (keys as attribute name and values as attribute value). I would be more consistent with the way Symfony allows to configure attributes in the form rendering.

And it will also be easier to make the function safe against XSS, as you will be able to escape attributes while you have to rely on the user doing it in case you pass a string of rendered HTML attributes