Fix: Enhance detection of html
Fix: syntax error
Qual: Reduce number of methods. Mutualize update_note code.
Fix: More complete function