<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hachinobu</author_name>
  <author_url>https://blog.hatena.ne.jp/hachinobu/</author_url>
  <blog_title>hachinoBlog</blog_title>
  <blog_url>https://hachinobu.hateblo.jp/</blog_url>
  <categories>
    <anon>Objective-C</anon>
  </categories>
  <description>背景 プログラム内で動的に生成したHTMLをWebViewで表示した際にデバッグ目的としてHTMLのソースを表示したくて調べた。 やり方 表示終わりのwebViewDidFinishLoad:メソッドあたりに下記コードを追加。 - (void)webViewDidFinishLoad:(UIWebView *)webView { //全文表示 NSString *fullHtml = [webView stringByEvaluatingJavaScriptFromString:@&quot;document.getElementsByTagName('html')[0].outerHTML&quot;]; NS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhachinobu.hateblo.jp%2Fentry%2F2014%2F03%2F26%2F134330&quot; title=&quot;WebViewで表示しているHTMLのソースを表示する方法 - hachinoBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-26 13:43:30</published>
  <title>WebViewで表示しているHTMLのソースを表示する方法</title>
  <type>rich</type>
  <url>https://hachinobu.hateblo.jp/entry/2014/03/26/134330</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
