Posts Tagged ‘regex’

jQuery plugin - HTML decode and encode

Tuesday, October 21st, 2008

I just found myself having encoded HTML within parts of the DOM (don’t ask me why) and I thought it would be cool to be able to parse it and encode/decode the parts where it’s needed. I ripped out some relevant lines from prototype js and made this plugin:... Read More

URL - from YouTube insert HTML - with preg_match

Friday, September 12th, 2008

A friend just needed help, he wants people to be able to put the YouTube insert code into a database. However it seems that there are some display related things in there he can live without that people might mess with and of course we don’t want that.... Read More