Add title and alt attribute for img tags with html escaping