How to resolve an HTML text control bug?

In PowerApps, you can create a custom header component to maintain consistency across screens or to enhance the user experience. Here are the steps to create a header component with the correct display of the current user's name and email address:

However, when running the app in play mode, you may encounter a bug with the HTML text control that displays the unexpected output. To overcome this issue, follow these additional steps.

Resolving HTML Text Control Bug

Output

Resolving HTML Text Control Bug