repaired regex to insert newlines between html tags