<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kizashi1122</author_name>
  <author_url>https://blog.hatena.ne.jp/kizashi1122/</author_url>
  <blog_title>kizashi1122の日記</blog_title>
  <blog_url>https://kizashi1122.hatenadiary.org/</blog_url>
  <categories>
    <anon>SAStruts</anon>
  </categories>
  <description>テキストにURLが含まれていたら、リンクにして表示するカスタムタグを作った。 SAStrutsに含まれるS2Functionsクラスのescapeメソッドを使いたかったのだが、privateメソッドなので継承しても意味ないので断念。まるっとコピーするのもアレな感じがしたので、commons.langのStringEscapeUtils#escapeHtml(String)を使うことにした。S2Functionsクラスのescapeと処理を比較したわけではないが、とりあえずは動いてそうなのでよしとする。 public static String url2link(String input) { …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkizashi1122.hatenadiary.org%2Fentry%2F20080805%2F1217947846&quot; title=&quot;カスタムタグを作る - kizashi1122の日記&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-08-05 23:50:46</published>
  <title>カスタムタグを作る</title>
  <type>rich</type>
  <url>https://kizashi1122.hatenadiary.org/entry/20080805/1217947846</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
