<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 06:07:56 +0000</lastBuildDate>
    <item>
      <title>(jQuery) jQuery Cursor Functions - crutzdesigns</title>
      <link>https://snipplr.com/view/48459/jquery-cursor-functions</link>
      <description>&lt;p&gt;Used on `&lt;input&gt;`'s and `&lt;textarea&gt;`'s&#13;
Several jQuery functions for getting the current cursor position and setting the current cursor position. Also allows for selecting text in a certain range.&#13;
&#13;
Usage:&#13;
&lt;pre&gt;&#13;
  $("input[name='username']").getCursorPosition();&#13;
  $("input[name='username']").setCursorPosition(5);&#13;
  $("input[name='username']").getSelection();&#13;
  $("input[name='username']").getSelectionStart();&#13;
  $("input[name='username']").getSelectionEnd();&#13;
  $("input[name='username']").setSelection(4, 20);&#13;
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 05 Feb 2011 09:48:04 UTC</pubDate>
      <guid>https://snipplr.com/view/48459/jquery-cursor-functions</guid>
    </item>
    <item>
      <title>(jQuery) jQuery.htmlentities - crutzdesigns</title>
      <link>https://snipplr.com/view/48380/jqueryhtmlentities</link>
      <description>&lt;p&gt;Takes a string as an argument and returns it with htmlentities&#13;
&#13;
Usage:&#13;
$.htmlentities("&lt;body&gt;hello bob&amp;doug&lt;/body&gt;");&#13;
&#13;
Returns:&#13;
&amp;lt;body&amp;gt;hello bob&amp;amp;doug&amp;lt;/body&amp;gt;&lt;/p&gt;</description>
      <pubDate>Fri, 04 Feb 2011 07:41:48 UTC</pubDate>
      <guid>https://snipplr.com/view/48380/jqueryhtmlentities</guid>
    </item>
    <item>
      <title>(jQuery) jQuery().toHTMLString - crutzdesigns</title>
      <link>https://snipplr.com/view/48376/jquerytohtmlstring</link>
      <description>&lt;p&gt;Gets the currently selected element as a string.&#13;
&#13;
Usage:&#13;
$("div#item1").toHTMLString();&lt;/p&gt;</description>
      <pubDate>Fri, 04 Feb 2011 07:18:39 UTC</pubDate>
      <guid>https://snipplr.com/view/48376/jquerytohtmlstring</guid>
    </item>
  </channel>
</rss>
