Posting gadgets and other weird HTML in drupal blocks

I you want to post nice gadgets or things like Google AdSense code in a block in Drupal, you will find that the default Full HTML input format does not work. This is because the default Full HTML will still do some checking to make sure you don't screw up and inserts linebreaks.

So, to create a completely Full HTML input format is the best way to go. Here is how.

Go to Administer > Site configuration > Input formats. Then choose "Configure" for Full HTML.

Rename "Full HTML" into "Half HTML" and press "Save".

Now choose "Add input format" and add a format called Full HTML without any kind of filtering on the end. Make sure only the right roles are allowed to use it, because this is one heavy kind of input format. Probably best to only allow the first administrator (so no roles selected) to make sure nobody will brake the site.

Now go to Administer > Site building > Blocks, and choose "Add block". Now you can choose the Full HTML input format and it will allow you to post all the weird kind of HTML you might want, even stuff that breaks your site!