I have some text that comes from an API that includes some user-entered text. Since Ember automatically html-escapes the text when popped into the template via curly braces, I didn’t have to worry about any extraneous angle brackets. Now, though, I’d like to do some formatting on this text via helper, like make certain strings bold. I can use htmlSafe to allow my formatting to pass through, but that will also let any extraneous angle brackets cause problems.
Is there any way to manually invoke the html escaping on a string? Then I can html-escape the original string, apply my formatting, and pass it on with htmlSafe.