$block_elements
$block_elements : string
Block level elements that should not be wrapped inside <p> tags
Typography Class
auto_typography( $str, $reduce_linebreaks = FALSE) : string
Auto Typography
This function converts text, making it typographically correct:
$str | ||
$reduce_linebreaks |
_protect_characters( $match) : string
Protect Characters
Protects special characters from being formatted later We don't want quotes converted within tags so we'll temporarily convert them to {@DQ} and {@SQ} and we don't want double dashes converted to emdash entities, so they are marked with {@DD} likewise double spaces are converted to {@NBS} to prevent entity conversion
$match |