i can get html data from sqlite database .
let html = "<htmll>
...
...
<img src="Documents/datadb/DestinationGuide/Images/Destination-Guide.png">
...
</html>"
webView.loadHTMLString(html, baseURL: nil)
Image store in this path
Documents/datadb/DestinationGuide/Images/Destination-Guide.png
It can not load in webview.
I think i want to give full path like application name after add this .
How to scan html code and replace src
and href
Already try this :
~/Documents/datadb/DestinationGuide/Images/Destination-Guide.png
/Documents/datadb/DestinationGuide/Images/Destination-Guide.png
/DestinationGuide/Images/Destination-Guide.png
/DestinationGuide/Images/Destination-Guide.png