<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takapi86</author_name>
  <author_url>https://blog.hatena.ne.jp/takapi86/</author_url>
  <blog_title>takapiのブログ</blog_title>
  <blog_url>https://takapi86.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>SmartyでのXSS対応方法をまとめます。 足りてないパターンがあれば追加予定。 参考 『体系的に学ぶ安全なWebアプリケーションの作り方 第2版』 Smartyのコード https://github.com/smarty-php/smarty/blob/478f8a29b4da07b7d18164cc8554b967a2036678/libs/plugins/modifier.escape.php 要素内容 &lt;p&gt;ここに文字が入る場合&lt;/p&gt; XSS対策方法 &lt; と &amp; を文字参照にする Smartyでは &lt;{$hoge|escape:'html'}&gt; を使います。 ※ &amp; &quot; ' &lt; &gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakapi86.hatenablog.com%2Fentry%2F2020%2F12%2F23%2F235919&quot; title=&quot;Smartyでのエスケープをまとめた - takapiのブログ&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>2020-12-23 23:59:19</published>
  <title>Smartyでのエスケープをまとめた</title>
  <type>rich</type>
  <url>https://takapi86.hatenablog.com/entry/2020/12/23/235919</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
