<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>phpnovice</author_name>
  <author_url>https://blog.hatena.ne.jp/phpnovice/</author_url>
  <blog_title>phpnoviceの日記</blog_title>
  <blog_url>https://phpnovice.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>このサイトに参照したコードがある： http://www.dreamincode.net/code/snippet3108.htm しかし、これだとタグ内にattributeがあるとうまくタイトルを取り込めない &amp; encodingを修正。 特にgooのblogが問題だった。 それを改良したのが以下 function getTitle($url) { $fh = @fopen($url, &quot;r&quot;); $str = @fread($fh, 7500); // read the first 7500 characters, it's gonna be near the top @fclose($f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphpnovice.hatenadiary.org%2Fentry%2F20110323%2F1300888081&quot; title=&quot; URLからタイトルをぶっこ抜く - phpnoviceの日記&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-03-23 22:48:01</published>
  <title> URLからタイトルをぶっこ抜く</title>
  <type>rich</type>
  <url>https://phpnovice.hatenadiary.org/entry/20110323/1300888081</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
