Skip to content

Instantly share code, notes, and snippets.

@plilion
Created August 8, 2015 01:34
Show Gist options
  • Select an option

  • Save plilion/d0e77e299e48844dd981 to your computer and use it in GitHub Desktop.

Select an option

Save plilion/d0e77e299e48844dd981 to your computer and use it in GitHub Desktop.
box.style.textAlign = "justify";
box.style.letterSpacing = '-.15em';
box.innerHTML = box.innerHTML.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '').split("").join(" ").replace(/\s{3}/g, "   ");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment