from django import conditional_espace as esc
f'<h1>Hi {esc(name)}</h1>'
It's too bad that ␛ U+251B isn't a valid Python identifier. Then we could do it in one character :-)
But as I keep saying, confusing new syntax to save a couple characters in calling an existing function is not a good thing.
-- The dead increasingly dominate and strangle both the living and the
not-yet born. Vampiric capital and undead corporate persons abuse
the lives and control the thoughts of homo faber. Ideas, once born,
become abortifacients against new conceptions.