<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>babydaemons</author_name>
  <author_url>https://blog.hatena.ne.jp/babydaemons/</author_url>
  <blog_title>babydaemons’ blog</blog_title>
  <blog_url>https://babydaemons.hatenablog.com/</blog_url>
  <categories>
    <anon>HTML</anon>
    <anon>ASP.NET</anon>
  </categories>
  <description>いわゆる「サニタイズ」です。仕事で検索文字列の強調表示処理（Googleのキャッシュ表示みたいなやつ）を作ってたのですが、記号は全て無視して検索する仕様だったので強調用に挿入したspanタグの不等号を含めて強調してしまうというバグを作りこんでしまい、HTML特殊文字のエスケープ処理について調べてみました。とりあえずの資料はhttp://www.asahi-net.or.jp/~wv7y-kmr/note/2002-05.html 考え方はhttp://takagi-hiromitsu.jp/diary/20051227.html改修方法は、DBから取り出した強調表示対象の文字列を丸ごとエスケー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabydaemons.hatenablog.com%2Fentry%2F20080326%2F1209032513&quot; title=&quot;HTML特殊文字のエスケープ処理 - babydaemons’ blog&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-03-26 19:21:53</published>
  <title>HTML特殊文字のエスケープ処理</title>
  <type>rich</type>
  <url>https://babydaemons.hatenablog.com/entry/20080326/1209032513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
