loadHTMLString(_:baseURL:)
Sets the main page content and base URL.
Declaration
func loadHTMLString(_ string: String, baseURL: URL?)Parameters
- string:
The content for the main page.
- baseURL:
The base URL for the content.
Discussion
To help you avoid being vulnerable to security attacks, be sure to use this method to load local HTML files; don’t use loadRequest(_:).