Welcome To Snipplr


Everyone's Recent Snippets Tagged text



1 ... 5 6 7 8 9
Convert string to underscore, for SE safe URLs etc.
1 1260 posted 16 years ago by jspicher
Used to sanitize user input for email.
0 1189 posted 16 years ago by jspicher
Used to cleanly truncate text.
0 1222 posted 16 years ago by jspicher
This is handy for cleaning up your HTML to use more plain text and fewer img tags. Whether this is SEO friendly or not is subjective. I tend to think it's fine as long as you don't use it for spam. Digg implements a similar method for their main logo...
1 2198 posted 16 years ago by adamcoulombe
Example markup: <p>This is the first part of the text <a class="toggle">[+]</a><span>this part is hidden until clicking the toggle link.</span></p> The script will show and hide text when the toggle link is c...
1 1335 posted 16 years ago by mikemetcalf
The "Definitive CSS Font Stacks"
6 1894 posted 16 years ago by ZGX
0 2841 posted 16 years ago by powerserve
ex : decode_htmlentities("l'eau")
0 1403 posted 16 years ago by manatlan
0 1046 posted 16 years ago by manatlan
1 1769 posted 16 years ago by enchance
I just noticed in Firefox 3.5.2 that setting `disabled = true` for a focused text input seems to make it impossible to re-focus after setting `disabled = false`. The solution is to blur it before disabling.
0 2173 posted 16 years ago by cyberhobo
This piece of code will store each line of a txt file into a mysql database
2 2309 posted 16 years ago by fackz
1 1188 posted 16 years ago by radarseven
1 1121 posted 16 years ago by jfleblanc
Fairly simple, cross-browser way to rotate text using only CSS.
0 1684 posted 16 years ago by Winkyboy
1 1577 posted 16 years ago by jonniespratley
1 1978 posted 16 years ago by shahways
Text beim tippen wo anders anzeigen
1 1329 posted 16 years ago by skrippendorf
A dynamic text field doesn't like to be set to bold (or italic, whatever). You can get around this issue by creating a text format in actionscript and setting that field's format to this newly-created one. This is only good for having a text field...
1 2000 posted 16 years ago by Winkyboy
1 1500 posted 16 years ago by pfeisinger
Esta función devuelve un string aleatoreo con un largo aleatoreo, con un mínimo y un máximo. El uso más común es solo especificar el largo máximo. Especialmente útil para pruebas unitarias. NOTA: depende de http://snipplr.com/view/14580/n...
1 1260 posted 16 years ago by delm
Sometimes you may need a carriage return in your text. Line 1 is the code for a carriage return in C# and line 3 shows an example of how to use it.
0 1606 posted 16 years ago by mordecaix7
When we can't or won't change the code of image tag with align attribute, but no 'style="margin: 0 10px 10px 0;' or 'hspace=10px' (IMHO, hspace makes bad looking layout in most cases) code within (just pure <img> code), we can use simple CSS rules f...
1 1950 posted 16 years ago by kossmoss
April 1, 2009, youtube.com
1 1533 posted 17 years ago by spraitas
1 ... 5 6 7 8 9