If you work with WordPress then must have noticed that the function wp_list_pages generates a list where each element gets a title attribute added automatically. This isn’t bad but most browsers will try helping us showing a small tolltip when we hover the mouse over the link and we designers don’t want that kind of behaviour.
To solve this problem we will require some help or regular expressions. If you don’t know what they are don’t worry, simply use the code and see it doing its magic.
The second line is the one that does the trick. It strips title attributes and leeps our list tidy.
Hope you find it useful.
