Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

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 →