CONTRIB-5028: clean up HTML markup better using strip_tags if tidy not available