fix empty titles and unescaped html entities