make sure fields is an array
Revert "sanitizing"

This reverts commit ad26a88a7e2fb3ab310c05ded0895b12cda98b18.
Revert "Start on sanitisation"

This reverts commit 91691f9819441d4aa75c39c44ee2d9aadd6be9af.
remove sanitizing
use printf to output input markup