Horde_Text_Textile
in package
References: http://www.textism.com/tools/textile/ http://en.wikipedia.org/wiki/Textile_(markup_language) http://hobix.com/textile/ http://whytheluckystiff.net/ruby/redcloth/ http://redcloth.rubyforge.org/rdoc/ http://code.whytheluckystiff.net/redcloth/browser/trunk/test/textism.yml
Example: get XHTML from a given Textile-markup string ($string) $textile = new Horde_Text_Textile; echo $textile->toHtml($string);
Tags
Table of Contents
- REGEX_A = '(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*'
- '(?:' . A_HLGN . '|' . A_VLGN . ')*'
- REGEX_A_HLGN = '(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))'
- A_HLGN
- REGEX_A_VLGN = '[\-^~]'
- A_VLGN
- REGEX_BLOCK_TAGS = 'bq|bc|notextile|pre|h[1-6]|fn\d+|p'
- Block tags
- REGEX_C = '(?:(?:\([^)]+\))|(?:\{[^}]+\})|(?:\[[^]]+\])|(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! )))*'
- '(?:' . C_CLAS . '|' . C_STYL . '|' . C_LNGE . '|' . A_HLGN . ')*'
- REGEX_PUNCT = '\!"#\$%&'\*\+,-\.\/\:;\=\?@\\^_`\|~'
- PUNCT
- REGEX_S = '(?:(?:\\\d+)|(?:\/\d+))*'
- '(?:' . S_CSPN . '|' . S_RSPN . ')*'
- REGEX_URL = '[\w"$\-_.+!*'(),";\/?:@=&%#{}|\^~\[\]`]'
- LINK_RE
- $GLYPH_APOSTROPHE : mixed
- $GLYPH_COPYRIGHT : mixed
- $GLYPH_DIMENSION : mixed
- $GLYPH_ELLIPSIS : mixed
- $GLYPH_EMDASH : mixed
- $GLYPH_ENDASH : mixed
- $GLYPH_PRIME : mixed
- $GLYPH_PRIME_DOUBLE : mixed
- $GLYPH_QUOTE_DOUBLE_CLOSE : mixed
- $GLYPH_QUOTE_DOUBLE_OPEN : mixed
- $GLYPH_QUOTE_SINGLE_CLOSE : mixed
- $GLYPH_QUOTE_SINGLE_OPEN : mixed
- Glyphs. Can be overridden if you want to substitute different entities.
- $GLYPH_REGISTERED : mixed
- $GLYPH_RETURN_ARROW : mixed
- $GLYPH_TRADEMARK : mixed
- $images : bool
- Show images? On by default.
- $rel : string
- Rel attribute for links (ex: nofollow).
- $_shelf : array<string|int, mixed>
- Shelf of values being processed.
- transform() : mixed
Constants
REGEX_A
'(?:' . A_HLGN . '|' . A_VLGN . ')*'
public
mixed
REGEX_A
= '(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*'
REGEX_A_HLGN
A_HLGN
public
mixed
REGEX_A_HLGN
= '(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))'
REGEX_A_VLGN
A_VLGN
public
mixed
REGEX_A_VLGN
= '[\-^~]'
REGEX_BLOCK_TAGS
Block tags
public
mixed
REGEX_BLOCK_TAGS
= 'bq|bc|notextile|pre|h[1-6]|fn\d+|p'
REGEX_C
'(?:' . C_CLAS . '|' . C_STYL . '|' . C_LNGE . '|' . A_HLGN . ')*'
public
mixed
REGEX_C
= '(?:(?:\([^)]+\))|(?:\{[^}]+\})|(?:\[[^]]+\])|(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! )))*'
REGEX_PUNCT
PUNCT
public
mixed
REGEX_PUNCT
= '\!"#\$%&'\*\+,-\.\/\:;\=\?@\\^_`\|~'
REGEX_S
'(?:' . S_CSPN . '|' . S_RSPN . ')*'
public
mixed
REGEX_S
= '(?:(?:\\\d+)|(?:\/\d+))*'
REGEX_URL
LINK_RE
public
mixed
REGEX_URL
= '[\w"$\-_.+!*'(),";\/?:@=&%#{}|\^~\[\]`]'
Properties
$GLYPH_APOSTROPHE
public
static mixed
$GLYPH_APOSTROPHE
= '’'
$GLYPH_COPYRIGHT
public
static mixed
$GLYPH_COPYRIGHT
= '©'
$GLYPH_DIMENSION
public
static mixed
$GLYPH_DIMENSION
= '×'
$GLYPH_ELLIPSIS
public
static mixed
$GLYPH_ELLIPSIS
= '…'
$GLYPH_EMDASH
public
static mixed
$GLYPH_EMDASH
= '—'
$GLYPH_ENDASH
public
static mixed
$GLYPH_ENDASH
= '–'
$GLYPH_PRIME
public
static mixed
$GLYPH_PRIME
= '′'
$GLYPH_PRIME_DOUBLE
public
static mixed
$GLYPH_PRIME_DOUBLE
= '″'
$GLYPH_QUOTE_DOUBLE_CLOSE
public
static mixed
$GLYPH_QUOTE_DOUBLE_CLOSE
= '”'
$GLYPH_QUOTE_DOUBLE_OPEN
public
static mixed
$GLYPH_QUOTE_DOUBLE_OPEN
= '“'
$GLYPH_QUOTE_SINGLE_CLOSE
public
static mixed
$GLYPH_QUOTE_SINGLE_CLOSE
= '’'
$GLYPH_QUOTE_SINGLE_OPEN
Glyphs. Can be overridden if you want to substitute different entities.
public
static mixed
$GLYPH_QUOTE_SINGLE_OPEN
= '‘'
$GLYPH_REGISTERED
public
static mixed
$GLYPH_REGISTERED
= '®'
$GLYPH_RETURN_ARROW
public
static mixed
$GLYPH_RETURN_ARROW
= '↩'
$GLYPH_TRADEMARK
public
static mixed
$GLYPH_TRADEMARK
= '™'
$images
Show images? On by default.
public
bool
$images
= rue
$rel
Rel attribute for links (ex: nofollow).
public
string
$rel
= ''
$_shelf
Shelf of values being processed.
protected
array<string|int, mixed>
$_shelf
= array()
Methods
transform()
public
transform(mixed $text[, mixed $rel = '' ]) : mixed
Parameters
- $text : mixed
- $rel : mixed = ''