Merge: lib/core: Optimized `html_escape` for FlatText variants