I try to add an anchor tag to local html file using this code:
let myAnchor ="#G"
let htmlPath = Bundle.main.path(forResource: "test", ofType: "html", inDirectory: "localWebsite", forLocalization:"")
let request = URLRequest(url: URL(fileURLWithPath: htmlPath! + myAnchor))
webview.load(request)
the answer is path/test.html%23G
so how I can convert to test.html#G
?