Код: Выделить всё
"My two favorite places to indulge on my sugar cravings are [url=\]Huize van Wely[/url] (located in the
Gelderlandplein shopping mall and Beethovenstraat) and [url=\]Linnick[/url]. The first is one I ........."
У меня есть этот метод, который успешно удаляет ссылки:
Код: Выделить всё
func stripLinks(text: String) -> String {
let pattern = "[url=\]([^
Подробнее здесь: [url]https://stackoverflow.com/questions/50911575/how-to-detect-links-in-a-textview-text-and-replace-them-with-clickable-link-text[/url]
Мобильная версия