<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>spitfire_tree</author_name>
  <author_url>https://blog.hatena.ne.jp/spitfire_tree/</author_url>
  <blog_title>happy lie, happy life</blog_title>
  <blog_url>https://spitfire-tree.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Nokogiri を使って html をパースし出力する時は以下のように記述します。 require 'nokogiri' Nokogiri::HTML('&lt;p&gt;test&lt;/p&gt;').to_s これは正しく動きますが、完全な html の形で出力されます。 &quot;&lt;!DOCTYPE html PUBLIC \&quot;-//W3C//DTD HTML 4.0 Transitional//EN\&quot; \&quot;http://www.w3.org/TR/REC-html40/loose.dtd\&quot;&gt;\n&lt;html&gt;&lt;body&gt;&lt;p&gt;test&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;\n&quot; 部分的に html をパースしたい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fspitfire-tree.hatenadiary.org%2Fentry%2F20111012%2F1318392254&quot; title=&quot;Nokogiri で html の断片を出力したい時 - happy lie, happy life&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>2011-10-12 13:04:14</published>
  <title>Nokogiri で html の断片を出力したい時</title>
  <type>rich</type>
  <url>https://spitfire-tree.hatenadiary.org/entry/20111012/1318392254</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
