Codex

Function Reference/wptexturize

Template:stub

Description

This returns given text with some transformations:

Usage

 <?php wptexturize(); ?> 


(List is incomplete, but gives you an idea.)

-- en-dash
--- em-dash
... ellipsis

There is a small "cockney" list of transformations, as well. The following common phrases will have typographic quotes added to them:

  • 'tain't
  • 'twere
  • 'twas
  • 'tis
  • 'twill
  • 'til
  • 'bout
  • 'nuff
  • 'round
  • 'cause

Parameters