<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shozzy</author_name>
  <author_url>https://blog.hatena.ne.jp/shozzy/</author_url>
  <blog_title>Float on the flow</blog_title>
  <blog_url>https://shozzy.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>上記エントリで没になった仕組みをメモ。 意外にそのものズバリなサイトが見つからなかったので、後学のために。 HTMLでは、文字を直接書くかわりに「数値文字参照」とか「数値エンティティ」と 呼ばれる仕組みを使って文字を表示させることもできます。 たとえば、HTML内に &amp;#21512;&amp;#22863; と書くと、画面上では 合奏 に見えます。 で、phpで普通の文字列からこれを生成する方法は次のようになります。 $original_string = &quot;合奏&quot;; $convmap = array(0x0080, 0xffff, 0, 0xffff); $encoding = &quot;UTF-8&quot;;$en…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshozzy.hatenablog.com%2Fentry%2F20060929%2F1159545013&quot; title=&quot;phpで数値文字参照 - Float on the flow&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>2006-09-29 00:50:13</published>
  <title>phpで数値文字参照</title>
  <type>rich</type>
  <url>https://shozzy.hatenablog.com/entry/20060929/1159545013</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
