<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/html</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 23:01:52 GMT</pubDate>
<item>
<title>(PHP) HTML Helper Function Create Any Element With Any Number Of Attributes (self-closing and container tags) - halk</title>
<link>http://snipplr.com/view/68682/html-helper-function-create-any-element-with-any-number-of-attributes-selfclosing-and-container-tags/</link>
<description><![CDATA[ <p>/**
 * THIS FUNCTION WILL RENDER A CONTAINER OR SELF-CLOSING HTML ELEMENT.
 * IT AUTO DETECTS WHAT TYPE YOU WANT
 * BASED ON RATHER OR NOT YOU SET A _data KEY IN THE ARRAY OF
 * ATTRIBUTES PASSED TO THE FUNCTION
 * 
 * USING AN ASSOCIATIVE ARRAY ATTRIBUTES ARE ASSIGNED TO THE ELEMENT
* 
 * IF THE KEY _data IS SET IN THE $propBag ARRAY
 * _data WILL BE INSERTED BETWEEN THE START AND END TAGS
 * AS THE ELEMENT IS NOT SELF CLOSING BECAUSE IT HAS DATA TO CONTAIN.
 * 
 * IF _data IS NOT SENT IN THE ARRAY THE TAG WILL BE FORMED AS SELF CLOSING
 * BECAUSE IT HAS NO DATA TO CONTAIN
 */
SEE Examples Of Use Below The Code</p> ]]></description>
<pubDate>Wed, 21 Nov 2012 08:19:17 GMT</pubDate>
<guid>http://snipplr.com/view/68682/html-helper-function-create-any-element-with-any-number-of-attributes-selfclosing-and-container-tags/</guid>
</item>
<item>
<title>(PHP) Form - paul0078</title>
<link>http://snipplr.com/view/64591/form/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 15 Apr 2012 20:16:34 GMT</pubDate>
<guid>http://snipplr.com/view/64591/form/</guid>
</item>
<item>
<title>(PHP) PHP if outside the HTML - ryarwood</title>
<link>http://snipplr.com/view/64474/php-if-outside-the-html/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 10 Apr 2012 14:02:49 GMT</pubDate>
<guid>http://snipplr.com/view/64474/php-if-outside-the-html/</guid>
</item>
<item>
<title>(PHP) Remove / Replace - href / anchor /link - in html /string - preg_replace - php - regex - regular expression - rwunsch</title>
<link>http://snipplr.com/view/63981/remove--replace--href--anchor-link--in-html-string--pregreplace--php--regex--regular-expression/</link>
<description><![CDATA[ <p>Replaces all links within href part of anchor in a HTML-String.</p> ]]></description>
<pubDate>Sat, 17 Mar 2012 03:20:17 GMT</pubDate>
<guid>http://snipplr.com/view/63981/remove--replace--href--anchor-link--in-html-string--pregreplace--php--regex--regular-expression/</guid>
</item>
<item>
<title>(PHP) Dummy Value Picker - vijendramisra</title>
<link>http://snipplr.com/view/63716/dummy-value-picker/</link>
<description><![CDATA[ <p>gfgd dg fgfg fg g</p> ]]></description>
<pubDate>Mon, 05 Mar 2012 19:39:49 GMT</pubDate>
<guid>http://snipplr.com/view/63716/dummy-value-picker/</guid>
</item>
<item>
<title>(PHP) Onlock clear value for Input - bubaphex</title>
<link>http://snipplr.com/view/60718/onlock-clear-value-for-input/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 11 Nov 2011 07:50:56 GMT</pubDate>
<guid>http://snipplr.com/view/60718/onlock-clear-value-for-input/</guid>
</item>
<item>
<title>(PHP) First Code 2 - Merrill Alegado - jerryvig</title>
<link>http://snipplr.com/view/60552/first-code-2--merrill-alegado/</link>
<description><![CDATA[ <p>http://www.poetiv.com/</p> ]]></description>
<pubDate>Fri, 04 Nov 2011 20:40:18 GMT</pubDate>
<guid>http://snipplr.com/view/60552/first-code-2--merrill-alegado/</guid>
</item>
<item>
<title>(PHP) PHP RANDON HTML - Jotape</title>
<link>http://snipplr.com/view/60186/php-randon-html/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 26 Oct 2011 02:43:19 GMT</pubDate>
<guid>http://snipplr.com/view/60186/php-randon-html/</guid>
</item>
<item>
<title>(PHP) Convert all HTML entities in database to actual characters - f6design</title>
<link>http://snipplr.com/view/59594/convert-all-html-entities-in-database-to-actual-characters/</link>
<description><![CDATA[ <p>Sometimes a legacy database will have HTML entities stored in it.

This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.</p> ]]></description>
<pubDate>Mon, 10 Oct 2011 17:06:51 GMT</pubDate>
<guid>http://snipplr.com/view/59594/convert-all-html-entities-in-database-to-actual-characters/</guid>
</item>
<item>
<title>(PHP) Thematic Insert Random HTML with condition - scottnix</title>
<link>http://snipplr.com/view/59456/thematic-insert-random-html-with-condition/</link>
<description><![CDATA[ <p>Insert a random div example with WordPress conditional logic to a Thematic action hook.</p> ]]></description>
<pubDate>Thu, 06 Oct 2011 04:41:36 GMT</pubDate>
<guid>http://snipplr.com/view/59456/thematic-insert-random-html-with-condition/</guid>
</item>
<item>
<title>(PHP) Thematic Insert Random HTML - scottnix</title>
<link>http://snipplr.com/view/59454/thematic-insert-random-html/</link>
<description><![CDATA[ <p>Example of inserting a random div on to a thematic action hook.</p> ]]></description>
<pubDate>Thu, 06 Oct 2011 04:38:34 GMT</pubDate>
<guid>http://snipplr.com/view/59454/thematic-insert-random-html/</guid>
</item>
<item>
<title>(PHP) convert html to pdf with html2ps - kspal</title>
<link>http://snipplr.com/view/58562/convert-html-to-pdf-with-html2ps/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Sep 2011 23:00:42 GMT</pubDate>
<guid>http://snipplr.com/view/58562/convert-html-to-pdf-with-html2ps/</guid>
</item>
<item>
<title>(PHP) Quick img tag - claudiowebdesign</title>
<link>http://snipplr.com/view/58227/quick-img-tag/</link>
<description><![CDATA[ <p>If you keep all image files to be displayed in a directory this could be a quicker and simplier way to write the proper tag</p> ]]></description>
<pubDate>Sat, 27 Aug 2011 05:55:40 GMT</pubDate>
<guid>http://snipplr.com/view/58227/quick-img-tag/</guid>
</item>
<item>
<title>(PHP) Allow HTML in WordPress User Biographical Info - Huskie</title>
<link>http://snipplr.com/view/58186/allow-html-in-wordpress-user-biographical-info/</link>
<description><![CDATA[ <p>Add code to theme functions.php file.</p> ]]></description>
<pubDate>Fri, 26 Aug 2011 06:22:01 GMT</pubDate>
<guid>http://snipplr.com/view/58186/allow-html-in-wordpress-user-biographical-info/</guid>
</item>
<item>
<title>(PHP) Allows to write code on your blog using the 'pre' tags - ignacio</title>
<link>http://snipplr.com/view/57632/allows-to-write-code-on-your-blog-using-the-pre-tags/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Aug 2011 23:19:44 GMT</pubDate>
<guid>http://snipplr.com/view/57632/allows-to-write-code-on-your-blog-using-the-pre-tags/</guid>
</item>
<item>
<title>(PHP) Extract Body - vitruvo</title>
<link>http://snipplr.com/view/57535/extract-body/</link>
<description><![CDATA[ <p>Easily extract the Content from a HTML Page with this tiny function.</p> ]]></description>
<pubDate>Wed, 03 Aug 2011 00:33:29 GMT</pubDate>
<guid>http://snipplr.com/view/57535/extract-body/</guid>
</item>
<item>
<title>(PHP) Make your table color different by Mysql Select tag - Darksider3</title>
<link>http://snipplr.com/view/57135/make-your-table-color-different-by-mysql-select-tag/</link>
<description><![CDATA[ <p>Here you see a example to make your table background color fdifferent at last</p> ]]></description>
<pubDate>Tue, 26 Jul 2011 02:21:32 GMT</pubDate>
<guid>http://snipplr.com/view/57135/make-your-table-color-different-by-mysql-select-tag/</guid>
</item>
<item>
<title>(PHP) Modx cms sample page (Evolution 1.0) - sjacunningham</title>
<link>http://snipplr.com/view/56418/modx-cms-sample-page-evolution-10/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 11 Jul 2011 22:54:39 GMT</pubDate>
<guid>http://snipplr.com/view/56418/modx-cms-sample-page-evolution-10/</guid>
</item>
<item>
<title>(PHP) Flickr Recent Photos to HTML with PHP - jakekimpton</title>
<link>http://snipplr.com/view/55467/flickr-recent-photos-to-html-with-php/</link>
<description><![CDATA[ <p>It’s been driving me crazy that there’s no definitive script written to take out a user’s Flickr recent photos and parse it for formatting into HTML with a larger size than the standard 75 x 75 dimensions that the public_photo.gne Flickr script outputs. So I’ve written one, using a bit of skill and a snippet of code that someone posted which was kind of going in the same direction but then suddenly stopped and took a hard u-turn, veering off to somewhere stupid, as usual with programmers who know too much. So here’s a quick run through of what the code does:

Collect the User ID that is added manually and constructs the Feed Links
Get the File contents of the Feed Link once it’s been run
Convert the XML to HTML
Return it to the script for printing or a variable (Choice of the Programmer)

I haven’t tested this on different versions of PHP, all I know is it works for me, and it’s using some pretty simple stuff so it should work fine. Just change the ID to your own or whoever’s it has to be and it should run.</p> ]]></description>
<pubDate>Sat, 18 Jun 2011 20:21:14 GMT</pubDate>
<guid>http://snipplr.com/view/55467/flickr-recent-photos-to-html-with-php/</guid>
</item>
<item>
<title>(PHP) php Form Class - JonnySnip3r</title>
<link>http://snipplr.com/view/55154/php-form-class/</link>
<description><![CDATA[ <p>Just a random php form class I made a while back ;-) Enjoy!</p> ]]></description>
<pubDate>Sat, 11 Jun 2011 08:18:17 GMT</pubDate>
<guid>http://snipplr.com/view/55154/php-form-class/</guid>
</item>
</channel>
</rss>