A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 3: Plug-in 5 - Word Selector

Quite often you will find you need to somehow highlight chosen words within a web page, for example when a user arrives from a search engine you may wish to highlight the search terms they used to help them find what they are looking for. Other times you might not want certain words to appear such as profanities or other words you wish to prevent your users from posting. This plug-in is powerful enough to handle both of these cases because you simply decide on the relevant words and what should happen to them.

The Figure shows a few words highlighted within a section of the US Declaration of Independence.