<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takeru-c</author_name>
  <author_url>https://blog.hatena.ne.jp/takeru-c/</author_url>
  <blog_title>パンプキンスパイスラテ</blog_title>
  <blog_url>https://pumpkin.hatenablog.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>Smartyでページを構築してたら、どうしてもjavascriptの部分でエラーになってしまう。しかもSmartyのエラー。悩んで調べてみたら、どうやらSmarty内でjavascriptを使うには、 {literal} &lt;script type=&quot;text/javascript&quot;&gt; //&lt;![CDATA[ function hoge(){ ごにょごにょ } //]]&gt; &lt;/script&gt; {/literal} のように、{literal}〜{/literal}で囲まなければならないらしい。 Smartyは単に文字列置換しているのかと思っていたら、JavaScriptはパースでエラーになるのね…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpumpkin.hatenablog.jp%2Fentry%2F20080614%2F1213435676&quot; title=&quot;Smartyのテンプレート内でjavascriptを使う - パンプキンスパイスラテ&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>2008-06-14 18:27:56</published>
  <title>Smartyのテンプレート内でjavascriptを使う</title>
  <type>rich</type>
  <url>https://pumpkin.hatenablog.jp/entry/20080614/1213435676</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
