Welcome To Snipplr


Everyone's Recent Snippets Tagged code



This PHP class lets you clean and repair html code. WHAT IT DOES: delete closed tags without their opening tag, fix open tag without close, closing them automatically, check bad nesting and fix them, fix bad quotes in attributes, merge different styl...
2 4721 posted 16 years ago by ginoplusio
0 3927 posted 16 years ago by jonathanbp
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14 4200 posted 16 years ago by smoothdzion
This snippet is just an upgrade to the "http://snipplr.com/view/7396/php-file-extension-case-changer/" code. This particular code works on image files... although you can just change this line [if (preg_match("/(jpg|gif|png|bmp)/",$ext)) ] to target...
0 2329 posted 16 years ago by el-artiste
comment out HTML
0 1649 posted 16 years ago by thesmu
1 2012 posted 16 years ago by Shifter
http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.html -and- http://www.webmasterworld.com/forum46/1288.htm
0 1520 posted 16 years ago by rwczippy
Useful for SBApplication scripting bridge.
0 2109 posted 17 years ago by iloveitaly
send in an event it returns the key that you pressed if it was alphanumeric or backspace otherwise it returns "-1" use with getKeyCode and isAlphaNumeric
0 1356 posted 17 years ago by jlvallelonga
to use this function send in an ASCII character code (use my getKeyCode function) it will return true if the code corresponds to a printable character (not backspace code - 8, enter code - 13, or "undefined")
0 1325 posted 17 years ago by jlvallelonga
Dynamically change the content of meta tags from the code behind. This allows you to feed the meta tags with content from a database or other dynamic content.
0 1723 posted 17 years ago by blackf0rk
This is a simple method of validating a 9-digit zip code using PHP and regular expressions
3 3920 posted 17 years ago by aristoworks
0 3613 posted 18 years ago by udayrayala
0 1566 posted 18 years ago by udayrayala
0 1453 posted 18 years ago by udayrayala
0 1334 posted 18 years ago by udayrayala
0 1527 posted 18 years ago by udayrayala
1 1787 posted 18 years ago by udayrayala
0 1636 posted 18 years ago by udayrayala
0 1912 posted 18 years ago by sondosia
1 3847 posted 18 years ago by darkphotn
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 2134 posted 18 years ago by darkphotn
When handing over a project to the client, you sometimes loose control over the content HTML source. Sometimes the client uses a CMS that allows them to have full control over certain parts of the HTML, and sometimes the client simply uses your templ...
2 1948 posted 18 years ago by j_junyent
0 1679 posted 18 years ago by andyhartleeds