$blockElements
$blockElements : string
Block level elements that should not be wrapped inside <p> tags
Typography Class
autoTypography(string $str, boolean $reduce_linebreaks = false) : string
Auto Typography
This function converts text, making it typographically correct:
string | $str | |
boolean | $reduce_linebreaks | whether to reduce more then two consecutive newlines to two |
protectCharacters(array $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
array | $match |
Loading…