Merge pull request #538 from ovatsus/HtmlTypeProvider

Fixes attributes always coming reversed, fixes #532, use double quotes in html output