Sanitizing HTML tags in WordPress MU

If you run a Wordpress MU installation, you probably notice that there are some HTML tags that are stripped (removed after an entry was posted). For example, when you upload a picture, you want to add style="float: right; margin: 10px;" so that you get a better entry formatting.

If you run a WordPress MU installation, you probably notice that there are some HTML tags that are stripped (removed after an entry was posted). For example, when you upload a picture, you want to add style="float: right; margin-left: 10px;" so that you get a better entry formatting.
By default, this style="" is filtered. If you are sure that you want to enable this tag, you can do it easily. Open your kses.php inside wp-includes directory. Around line 20, you will find this line: $allowedposttags = array.
For example:

'img' => array (
'alt' => array (),
'border' => array (),
'class' => array (),
'height' => array (),
'hspace' => array (),
'longdesc' => array (),
'vspace' => array (),
'src' => array (),
'width' => array ()),

alt, border, class, etc. are the code that are permitted to be used in the entry — to me more spesific, inside <img /> tag. If you want to allow style="" in the post, just add a new line: 'style' => array(),. Easy, right?