Swift: How to display text with HTML tags using attributed text and adjust its font to system font

If your text contains HTML tags you need to use the attributed text in order to display it in iOS. Otherwise it will be displayed as plain text without HTML formatting.

For example, I have the following text,

Was ist <u>keine</u> Leitlinie von CHECK24?

I need to display it on the iOS device using a UILabel. If I display it without changing the UILabel to a attributed text. It will display as follows,

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store