Fix common LLM markup mistakes for a provider.
Closes opening tags that should be self-closing (e.g. the LLM writes <expression value="happy"> instead of <expression value="happy"/> — or <expr type="sound" label="laugh"> instead of <expr type="sound" label="laugh"/>).
<expression value="happy">
<expression value="happy"/>
<expr type="sound" label="laugh">
<expr type="sound" label="laugh"/>
Fix common LLM markup mistakes for a provider.
Closes opening tags that should be self-closing (e.g. the LLM writes
<expression value="happy">instead of<expression value="happy"/>— or<expr type="sound" label="laugh">instead of<expr type="sound" label="laugh"/>).