Surprised that I cannot find such simple need in 15 minutes.
I am forming string based on user input and it might have some special characters, like < or /. To be safe I want to add html encoding to such line of code (typescript):
const suggest: any = { id: '', title: `Suggest ${q} ${type}`, type: type, query: q };
title later used as typeaheadOptionField and I do not see an easy way to use innerHTML.
Thanks!