Fix missing closing anchor and svg tags.