Safely embedding plain-text data in a Rich Text {{my.token}}

This is a brief addendum to the JSON {{my.token}} post.

Sometimes, you might want to store just text (like comma- or pipe-delimited data) inside a data block. That's easy, too:

ss

Then when you parse it, just skip the JSON parsing:

var plainTextData = document.querySelector("script[type='text/plain']").text
  .split(/^/m)
  .slice(1,-1)
  .join("");