Fixes HTML structures for FF36 (and maybe other old browsers)

The structure of the current generated HTML is not correct for old browsers like FF3.6 :

  - Bad link closing tag
  - Wrong ul/li structure (there is a div instead of an li)
  - Multiple HTML ID
  - No support for blocks (div) in inline tags (a) - see method heading template

UI must be checked I guess.