[Red] Refactoring conversion function

  - The testsuite field-transformer fails, however that file has not been modified.
    Just the entry point entryToHtml has been modified in a more convinient way.

    It may be possible that while I was refactoring the tests I introduced some error
      (the tests were not very clear). Thus I suggest to review or rewrite the tests.