<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>prototype.jsをインポートすると追加される「String.escapeHTML()」や「String.stripTags()」を使うと、HTMLのタグをサニタイズできます。 「String.escapeHTML()」は「」などの文字列を「&amp;lt;」や「&amp;gt;」に置き換えます。 「String.stripTags()」はタグを除去します。 サンプルはこちら。サンプルのソースは以下です。 &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt; &lt;script type=&quot;text…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20081123%2F1227426040&quot; title=&quot; [prototype.js] HTMLのタグをサニタイズするサンプル - うなの日記&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-11-23 16:40:40</published>
  <title> [prototype.js] HTMLのタグをサニタイズするサンプル</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20081123/1227426040</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
