* Jack Bates ms419@freezone.co.uk [Wed, 24 Mar 2010 20:10:03 -0700]:
Can I use a hook to strip trailing whitespace from the ends of lines when a page is saved?
In other words, between an author editing a page and the edited wiki text getting stored in the database, I want to strip trailing
whitespace
from the ends of lines
Can I do it with a hook?
Try using this hook: http://www.mediawiki.org/wiki/Manual:Hooks/ArticleSave Just modify the $text being passed. Dmitriy