<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mikan-s</author_name>
  <author_url>https://blog.hatena.ne.jp/mikan-s/</author_url>
  <blog_title>mikan-sの日記</blog_title>
  <blog_url>https://mikan-s.hatenadiary.org/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>smarty</anon>
  </categories>
  <description>該当文字と同じ長さの*で伏せるsmartyプラグイン。以下のファイル名で保存して。 smarty/plugins/modifier.hide_taboo.php &lt;?php function smarty_modifier_hide_taboo($string) { $tabooRegexp = '/(ごはん|めんどくさい)/ie'; $string = preg_replace($tabooRegexp, &quot;str_repeat('●', mb_strlen('\${1}'))&quot;, $string); } return $string; } ?&gt; $tabooRegexpの書き方は文字列と配…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikan-s.hatenadiary.org%2Fentry%2F20110424%2F1303656138&quot; title=&quot;文字を*で伏せるsmartyプラグイン - mikan-sの日記&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>2011-04-24 23:42:18</published>
  <title>文字を*で伏せるsmartyプラグイン</title>
  <type>rich</type>
  <url>https://mikan-s.hatenadiary.org/entry/20110424/1303656138</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
