title: Apps Script - splitting google form checkbox answers by commas
body: <p>Google form checkbox question combines the selected responses into one column separated by commas. I am trying to send out a confirmation email of these responses, but the email results in a clunk format:</p>
  
  <p>Register: 9:15 AM - 10:00 AM    Instructional Technology Tools &amp; Resources (electronic lab notebooks, classroom tech, analytics, etc.), 10:10 AM - 11:00 AM   Tools for flipped or hybrid (blended) courses (learning glass, instructional design, Ted, podcast, etc.)</p>
  
  <p>I'd like to replace the comma separator with <code>&lt;br&gt;</code> but haven't been able to figure it out.</p>
  
  <p>I've tried:</p>
  
  <pre><code>register = e.namedValues[headers[4]].split(',');
  
  
  register = e.namedValues[headers[4]];
  workshops = register.replace(",", "&lt;br&gt;");
  </code></pre>
  
  <p>Any help would be greatly appreciated! Thank you!</p>
  
  <pre><code>for (var i in headers) {
    ....... ....... 
    register = e.namedValues[headers[4]];
  } 
  
  if (e.namedValues[headers[i]].toString() != "" ) {
    textbody = ....... + register + "&lt;br&gt;"
  }
  </code></pre>