0

I am loading a html string in my UIWebView. Everything is working fine but when i tried to load a html containing <&reg > tag webview doesn't render it properly. Example if i have "Capital One® Secured" it is not rendering tag ® simplay display it as it is on the webview. Any help will be appreciated.

4

1 回答 1

0

您不需要&reg用标签标记。相反,您应该&reg;在需要注册商标符号的地方单独使用。

例如

NSString *HTMLString = @"<p>Capital One&reg; Secured</p>";
[webView loadHTMLString:HTMLString baseURL:nil];
于 2013-05-15T08:44:24.893 回答