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,