[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
The regular expression for an HTML element.
File Size: | 466 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
htmlSplit(input) X-Ref |
Separate HTML elements and comments from the text. return: The formatted text. param: input The text which has to be formatted. |
replaceInHtmlTags(haystack, replacePairs) X-Ref |
Replace characters or phrases within HTML elements only. return: The formatted text. param: haystack The text which has to be formatted. param: replacePairs In the form {from: 'to', …}. |
autop(text, br = true) X-Ref |
Replaces double line-breaks with paragraph elements. A group of regex replaces used to identify text formatted with newlines and replace double line-breaks with HTML paragraph tags. The remaining line- breaks after conversion become `<br />` tags, unless br is set to 'false'. return: Text which has been converted into paragraph tags. param: text The text which has to be formatted. param: br Optional. If set, will convert all remaining line- |
removep(html) X-Ref |
Replaces `<p>` tags with two line breaks. "Opposite" of autop(). Replaces `<p>` tags with two line breaks except where the `<p>` has attributes. Unifies whitespace. Indents `<li>`, `<dt>` and `<dd>` for better readability. return: The content with stripped paragraph tags. param: html The content from the editor. |
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |