【发布时间】:2017-06-03 09:17:05
【问题描述】:
><svg/onload=alert(document.domain)> 我想在 uiwebview 中打印此文本。现在它给了我警报“myapplication.app”并且没有显示任何文本。
要加载 html 字符串,我正在使用 [webView loadHTMLString:HtmlString baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]]; 这段代码。
基本上我想在UIWebView 中将javascripts 打印为文本,并且不希望它们被执行。
谢谢。
【问题讨论】:
标签: javascript ios xcode uiwebview