<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>laplus-knsn</author_name>
  <author_url>https://blog.hatena.ne.jp/laplus-knsn/</author_url>
  <blog_title>at kaneshin</blog_title>
  <blog_url>https://kaneshin.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>jQuery</anon>
  </categories>
  <description>jQueryで文字列を特定の文字数でカットして末尾に「…」などを追加する方法 | BlackFlagこのエントリーのコード、もう少し可読性を上げた方が良いと思ったので、書き直してみた。jQueryって、 $foo.html(something).css(something).animate(something)... ; とできるので、処理分けしているところで同じ関数を書いたりしてると、コードが見難くなる。最終的に同じ後処理をするなら、if文を抜けてから書くべきと思ってる。 // css() が2つある if(cutFigure &lt; textLength) { $(this).html(tex…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaneshin.hateblo.jp%2Fentry%2F2012%2F10%2F11%2F130510&quot; title=&quot;Slice text and add trails with jQuery. - at kaneshin&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>2012-10-11 13:05:10</published>
  <title>Slice text and add trails with jQuery.</title>
  <type>rich</type>
  <url>https://kaneshin.hateblo.jp/entry/2012/10/11/130510</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
