WordPress 中文文档

Function Reference/wptexturize

From WordPress Chinese

Jump to: navigation, search

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:

>> How, in the name of anything holy, can something pretending to be a wordprocessing module pretend to be /sane/ while engaging in this absolute gack? Strip it out ... strip it out and leave it out. Gooooood grief. << --bentrem 04:59, 27 December 2007 (UTC)

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

Parameters

用户