Allow slashes in HTML attributes

Fixes #199.

I think this change needs quite a lot more tests. Contributions and ideas are quite welcome.