<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>leader22</author_name>
  <author_url>https://blog.hatena.ne.jp/leader22/</author_url>
  <blog_title>console.lealog();</blog_title>
  <blog_url>https://lealog.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPにしろなんにしろ、ウェブサービスを作るにあたってPOSTやらGETやらとは無縁でいられませんね。XSSやらSQLインジェクションやらの魔の手を回避するためにも、エスケープについて知っておくべき必要がありそうです。ちょっとした前提知識はあるものの、実際何をどう書けば良いかわからんかったので、調べたメモをここに。 最低限エスケープすべきもの &amp; ' &quot; &lt; &gt; 最低限これはやっとけだそうです。 そのための関数として、 $str = $_GET['query']; $e_str = htmlspecialchars($str, ENT_QUOTES, &quot;utf-8&quot;); 参考：PHP: htm…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flealog.hateblo.jp%2Fentry%2F2012%2F01%2F30%2F221031&quot; title=&quot;GETした値のエスケープのために必要なこと - console.lealog();&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>2012-01-30 22:10:31</published>
  <title>GETした値のエスケープのために必要なこと</title>
  <type>rich</type>
  <url>https://lealog.hateblo.jp/entry/2012/01/30/221031</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
