diff --git a/js-miniapp-sample/external-webview/index.html b/js-miniapp-sample/external-webview/index.html index 7eb7bfaa6..54d02c033 100644 --- a/js-miniapp-sample/external-webview/index.html +++ b/js-miniapp-sample/external-webview/index.html @@ -101,7 +101,9 @@

Return To Mini App

const passedParams = window.location.search // This page is loaded via a query parameter so we must remove the section which isn't relevant .replace(/^[?](.*?)[?]/, '?'); - document.getElementById('PassedParams').innerHTML = passedParams || 'None'; + const text = document.createElement('span'); + text.innerText = passedParams || 'None'; + document.getElementById('PassedParams').appendChild(text); // Set return URL and params const returnInput = document.getElementById('ReturnInput');