<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drambuie</author_name>
  <author_url>https://blog.hatena.ne.jp/drambuie/</author_url>
  <blog_title>drambuieの日記</blog_title>
  <blog_url>https://drambuie.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>「ようこそ{username}さん」の{username}を実際の名前に置き換えるような単純な文字列の置換のみ行う簡易テンプレート機能。 複数の文字列の置換は、str_replaceやpreg_replaceという関数がある。 sprintfも使えないことはないのか? PHPの文字列をダブルクォートで囲むと変数が展開されるけど、あれと同様の処理はできるのだろうか。→これは分からなかった。 ファイルを読んだ後、{username}を &lt;?php echo $username; ?&gt; に置換してPHPコードとして処理する方法もあるのかなと思ったが、eval()では&lt;?php 〜 ?&gt;の中に書く部分…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrambuie.hatenadiary.org%2Fentry%2F20040909%2Fp1&quot; title=&quot;簡易テンプレート処理 - drambuieの日記&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>2004-09-09 00:00:00</published>
  <title>簡易テンプレート処理</title>
  <type>rich</type>
  <url>https://drambuie.hatenadiary.org/entry/20040909/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
