<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ooo-ka999</author_name>
  <author_url>https://blog.hatena.ne.jp/ooo-ka999/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
  </categories>
  <description>PHPで特殊文字をエスケープする方法 なぜ特殊文字をエスケープする必要があるのか PHPで特殊文字をエスケープする方法 コードの解説 最後に PHPで特殊文字をエスケープする方法 初めまして、新卒2年目の岡崎です。今回は、PHPでHTMLタグなどに使われる特殊文字をエスケープする方法を紹介します。 なぜ特殊文字をエスケープする必要があるのか プログラミングでは、特定の文字（&lt;、&gt;、&amp;、&quot;、'等）が特別な意味を持つため、そのまま使用すると問題が発生する可能性があります。 例えば、HTMLやSQLでは&quot;や'はデータの境界を示し、&lt;script&gt;はブラウザで実行されるコードとして解釈される可能性があ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2025%2F03%2F25%2F094901&quot; title=&quot;PHPで特殊文字をエスケープする方法 - エキサイト TechBlog.&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>https://cdn-ak.f.st-hatena.com/images/fotolife/o/ooo-ka999/20250317/20250317102754.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-25 09:49:01</published>
  <title>PHPで特殊文字をエスケープする方法</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2025/03/25/094901</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
