Browsing articles from "May, 2011"
May
23
2011

PHP function to remove MS Word Characters

There has been many times I have implemented WYSIWYG editors on my clients website only to have proprietary MS tags and code ruin the layout. I have been using this block of code for quite some time with pretty good success. It could use a bit more testing and I am sure there are additional characters or regular expression rules that could really button it up. If you find a way to improve upon this […]

May
22
2011

Truncating read more text by words not length

I have found that truncating a string by it length is not always an elegant solution. To give your site a more polished look try truncating by whole words instead. So instead of getting something like: “This is my awesome paragraph. It is really long and I am making it shor… read more” You will get: “This is my awesome paragraph. It is really long and I am making it shorter… read more”

Show/Hide Footer Actions

Status: Available for your project.