I have a string of text that I need to format so it displays properly to the user. Right now, the specific phrase I want to format (a variable) is surrounded by single quotes. That doesn't look pretty. I want to add a <strong> tag or <h4> tag around the phrase before delivering it to another component which will display it.
Component 1: (Typescript)
this.persistingData.changeConfirmationDescription(`Are you sure you want to add the school '${this.schoolName}'?`);
Component 2: (HTML)
<h2>Confirm Action:</h2>
{{confirmationDescription}}
<button> Cancel </button> <button> Confirm </button>