Generate valid HTML inside label elements

Fixes gh-4