<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ajicolor</author_name>
  <author_url>https://blog.hatena.ne.jp/ajicolor/</author_url>
  <blog_title>やわらかしかっけい</blog_title>
  <blog_url>https://ajicolor.hatenablog.jp/</blog_url>
  <categories>
    <anon>HTML,CSS,javascript</anon>
    <anon>WordPress</anon>
  </categories>
  <description>WordPressサイトの中の、 人名に使われている とある1文字が異体字で サイト全体に使っている 'Noto Sans JP' では希望する字体にならなかったので、 その一文字だけにspan class=&quot;moji&quot;を付けて、別のWebフォントを指定したい。PHPで置換かな…と思ったが、Javascriptでできた。 &lt;!-- footer.php内 --&gt; &lt;script&gt; str=document.body.innerHTML; str=str.replace(/字/g,&quot;&lt;span class='moji'&gt;字&lt;/span&gt;&quot;); document.body.innerHTML=st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajicolor.hatenablog.jp%2Fentry%2F2023%2F02%2F15%2F101307&quot; title=&quot;サイト全体の中から特定の文字列を抽出してクラスを付けたい - やわらかしかっけい&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>2023-02-15 10:13:07</published>
  <title>サイト全体の中から特定の文字列を抽出してクラスを付けたい</title>
  <type>rich</type>
  <url>https://ajicolor.hatenablog.jp/entry/2023/02/15/101307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
