[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> autop.js (summary)

(no description)

File Size: 604 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 13 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _iterableToArrayLimit()
  _slicedToArray()
  _arrayLikeToArray()
  _unsupportedIterableToArray()
  htmlSplit()
  replaceInHtmlTags()
  autop()
  removep()
  _arrayWithHoles()
  _nonIterableRest()

Functions
Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_arrayLikeToArray(arr, len)   X-Ref
No description

_unsupportedIterableToArray(o, minLen)   X-Ref
No description

htmlSplit(input)   X-Ref
Separate HTML elements and comments from the text.

return: {Array}        The formatted text.
param: {string} input The text which has to be formatted.

replaceInHtmlTags(haystack, replacePairs)   X-Ref
Replace characters or phrases within HTML elements only.

return: {string}              The formatted text.
param: {string} haystack     The text which has to be formatted.
param: {Object} replacePairs In the form {from: 'to', ...}.

autop(text)   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: {string}         Text which has been converted into paragraph tags.
param: {string}    text The text which has to be formatted.
param: {boolean}   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: {string}      The content with stripped paragraph tags.
param: {string} html The content from the editor.

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description



Generated : Wed May 27 08:20:01 2020 Cross-referenced by PHPXref