I am trying to load html string with swift parameters but it is not loading
let htmlStr = """
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src= "'\(jsUrl)'" id="xxxxx"
data-error="ErrorCallback" data-cancel="CancelCallback" data-complete="CompleteCallback"
data-timeout="TimeoutCallback">
</script>
</head>
<body>
<div style="clear: both;height: 3px;">
</div>
</body>
<script type="text/javascript">
CheckoutConfigure();
Checkout.showLightbox();
function CancelCallback() {
AndroidFunction.cancelCallback()
}
function ErrorCallback(response) {
AndroidFunction.errorCallback(JSON.stringify(response))
}
function CompleteCallback(response,sessionVersion) {
AndroidFunction.completeCallback(response, sessionVersion)
}
function TimeoutCallback() {
AndroidFunction.timeoutCallback()
}
</script>
</html>
"""
Here is calling function
webView.loadHTMLString(htmlStr, baseURL: nil)