I get a HTML string from my API that i display in a UIWebView in my app.
This HTML can contain images that are protected by authentication, so i add replace the URL with an username:password@url:
generatedHtml = generatedHtml.stringByReplacingOccurrencesOfString(urlWithoutAuthentication, withString: authenticatedUrl)
This does stringReplace on the entire HTML, how can i limit this to only tags?