zachleat’s avatarzachleat’s Twitter Archive—№ 209

  1. Quick code to normalize new lines in JavaScript (note: html attributes can have newlines) "\r\n".replace(/(\r\n|\r|\n)/g, "\n");