<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hikaru217</author_name>
  <author_url>https://blog.hatena.ne.jp/hikaru217/</author_url>
  <blog_title>還暦過ぎたエンジニアの挑戦</blog_title>
  <blog_url>https://blog.yutenji.biz/</blog_url>
  <categories>
    <anon>転ぶ前に読め</anon>
    <anon>転ぶ前に読め-web</anon>
  </categories>
  <description>javascriptにはphpのhtmlspecialchars()のようなメソッドは無いので Copied! file_copy function htmlspecialchars(str) { return (str + '').replace(/&amp;/g, '&amp;amp;') .replace(/&quot;/g, '&amp;quot;') .replace(/'/g, '&amp;#039;') .replace(/&lt;/g, '&amp;lt;') .replace(/&gt;/g, '&amp;gt;'); } プチモンテさんが丁寧に紹介してくれていますので使わせていただきます。 Hikaru</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.yutenji.biz%2Fentry%2F2020%2F07%2F01%2F100000&quot; title=&quot;javascriptでhtmlspecialchars - 還暦過ぎたエンジニアの挑戦&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.user.blog.st-hatena.com/default_entry_og_image/7043762/1589064498716049</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-01 10:00:00</published>
  <title>javascriptでhtmlspecialchars</title>
  <type>rich</type>
  <url>https://blog.yutenji.biz/entry/2020/07/01/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
