Suppose I have:
"<p>I need <a href='www.alink.com'> www.alink.com / x /y </a>, along with this. </p>"
I want to get the text : I need www.alink.com/x/y, along with this.
I tried removing html by:
someString?.replacingOccurrences(of: "<[^>]+>", with: "", options: .regularExpression, range: nil)
then I get: I need www.alink.com / x / y, along with this.
I need the link text without the space, how can I do that?