Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

smartypants Modifier

Translate plain ASCII punctuation characters into “smart” typographic punctuation HTML entities. It performs the following transformations:

  • Straight quotes (" and ') into “curly” quote HTML entities
  • Backticks-style quotes (``like this'') into “curly” quote HTML entities
  • Two dashes (--) into an em dash.
  • Three consecutive dots (...) into an ellipsis entity
conversation: |
"What's your favorite album?" asked Lars. ``...And Justice for All'' replied
Kirk -- who was icing his hands after a 20 minute guitar solo.
{{ conversation | smartypants }}
{{ Statamic::modify($conversation)->smartypants() }}
“What’s your favorite album?” asked Lars. “…And Justice for All” replied
Kirk — who was icing his hands after a 20 minute guitar solo.

or more precisely...

“What’s your favorite album?” asked Lars. “…And Justice for All” replied
Kirk — who was icing his hands after a 20 minute guitar solo.
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →