fixed post editing problem by escaping newline characters in injected html