PDA

View Full Version : html document + :) = smiley



chrisclick
July 16th, 2007, 08:49 PM
Ok so here is what i want to do:

Save html document from my computer with Dreamweaver or other Wysiwyg editor (this html file will have text like : ) )

Upload it to the server

Then when a user goes to view it all the text like : ) gets turned into smileys :)

is there anyway to do this?

simplistik
July 16th, 2007, 09:29 PM
in php all you'd need to do is


str_replace(':)', '<img src="pathtoimage.gif" alt="smiley" />', $content);