From HTML conversion simplified and unified