wouldn't JSON work here too? I suppose it's unlikely that a thing called `ui_type` has an apostrophe or newline in it, from a type-safety perspective, you're plopping unescaped text into a code region that requires escaped text, so using the JSON filter seems better.