Fixed unclosed <a>.
New sanitize function. Fixes issue #22.