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'' repliedKirk -- who was icing his hands after a 20 minute guitar solo.yaml
{{ conversation | smartypants }}antlers
“What’s your favorite album?” asked Lars. “…And Justice for All” repliedKirk — who was icing his hands after a 20 minute guitar solo.html
or more precisely...
“What’s your favorite album?” asked Lars. “…And Justice for All” repliedKirk — who was icing his hands after a 20 minute guitar solo.html