slugify anchors, fix some minor html issues