I'm trying to edit a piece of html from an rss in a UIWebView. Right now, I'm trying to change the font of the html. I do so by putting a piece of html before and after the HTML(the html is just
loads of text
). But when I try to do this, Xcode detects syntax-errors in my code even though it's within a string. Is there any way to make xcode believe that this is an actual string and not code? And why does this happen?This is the code(written in Swift 2.0):
let startHTML = "<font face="verdana" color="green">"
let endHTML = "</font>"
let myHTMLString:String = startHTML + entryDescription + endHTML
web.loadHTMLString(myHTMLString, baseURL: nil)