escape html tags and empty content