First we take a HTML string as input and then process this string to generate an Attributed String which can be set to the UILabel. Below are the steps in the process:
* Data is taken from the string using the unicode encoding.
let data = string.data(using: String.Encoding.unicode,