<?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>Tue, 09 Jun 2026 09:11:25 +0000</lastBuildDate>
    <item>
      <title>(PHP) Replace all the links except local - For redirecting - kossmoss</title>
      <link>https://snipplr.com/view/13606/replace-all-the-links-except-local--for-redirecting</link>
      <description>&lt;p&gt;You can get hostname from script environment - getenv("HTTP_HOST")&#13;
(?!'.$host.') matches URLs always except local links&lt;/p&gt;</description>
      <pubDate>Mon, 30 Mar 2009 22:08:34 UTC</pubDate>
      <guid>https://snipplr.com/view/13606/replace-all-the-links-except-local--for-redirecting</guid>
    </item>
    <item>
      <title>(PHP) Replace specified link tag in text - kossmoss</title>
      <link>https://snipplr.com/view/13552/replace-specified-link-tag-in-text</link>
      <description>&lt;p&gt;Affects &lt;A&gt; tags for links starting with $link&#13;
Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to&#13;
&lt;a href="http://www.snipplr.com"&gt;Snipplr&lt;/a&gt;&#13;
and &lt;a href="http://www.snipplr.com/blog"&gt;Snipplr Blog&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 29 Mar 2009 10:29:08 UTC</pubDate>
      <guid>https://snipplr.com/view/13552/replace-specified-link-tag-in-text</guid>
    </item>
    <item>
      <title>(PHP) Soft text cutting (don't break words!) - kossmoss</title>
      <link>https://snipplr.com/view/13332/soft-text-cutting-dont-break-words</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 20 Mar 2009 21:01:51 UTC</pubDate>
      <guid>https://snipplr.com/view/13332/soft-text-cutting-dont-break-words</guid>
    </item>
    <item>
      <title>(PHP) Tag closing for HTML text pieces - kossmoss</title>
      <link>https://snipplr.com/view/13331/tag-closing-for-html-text-pieces</link>
      <description>&lt;p&gt;closes opened tags in text piece.&#13;
original code slightly modified to supress PHP warnings&#13;
&#13;
NOTE: need to fix the order of closing tags to get standards compliance&lt;/p&gt;</description>
      <pubDate>Fri, 20 Mar 2009 20:59:06 UTC</pubDate>
      <guid>https://snipplr.com/view/13331/tag-closing-for-html-text-pieces</guid>
    </item>
  </channel>
</rss>
