Skip to content

Viewing entries tagged with 'code snippets'

3 Feb 2012 by Nomad

Snippets: Accented Characters

This is a quick and dirty PHP hack which will convert accented characters to their non-accented version (e.g. á to a). It relies on the HTML entity starting with the unaccented character. It's highly volatile and likely to fail as it will convert & and other characters that you may not want converted.

8 Dec 2011 by Nomad

Snippets: Unique Id

A very simple function for creating a unique id in JavaScript.