[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> escape-html.js (summary)

(no description)

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

Defines 10 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  __unstableEscapeGreaterThan()
  escapeAmpersand()
  escapeQuotationMark()
  escapeLessThan()
  escapeAttribute()
  escapeHTML()
  isValidAttributeName()

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

__unstableEscapeGreaterThan(value)   X-Ref
Returns a string with greater-than sign replaced.

Note that if a resolution for Trac#45387 comes to fruition, it is no longer
necessary for `__unstableEscapeGreaterThan` to exist.

See: https://core.trac.wordpress.org/ticket/45387

return: {string} Escaped string.
param: {string} value Original string.

escapeAmpersand(value)   X-Ref
Returns a string with ampersands escaped. Note that this is an imperfect
implementation, where only ampersands which do not appear as a pattern of
named, decimal, or hexadecimal character references are escaped. Invalid
named references (i.e. ambiguous ampersand) are are still permitted.

return: {string} Escaped string.
param: {string} value Original string.

escapeQuotationMark(value)   X-Ref
Returns a string with quotation marks replaced.

return: {string} Escaped string.
param: {string} value Original string.

escapeLessThan(value)   X-Ref
Returns a string with less-than sign replaced.

return: {string} Escaped string.
param: {string} value Original string.

escapeAttribute(value)   X-Ref
Returns an escaped attribute value.

return: {string} Escaped attribute value.
param: {string} value Attribute value.

escapeHTML(value)   X-Ref
Returns an escaped HTML element value.

return: {string} Escaped HTML element value.
param: {string} value Element value.

isValidAttributeName(name)   X-Ref
Returns true if the given attribute name is valid, or false otherwise.

return: {boolean} Whether attribute is valid.
param: {string} name Attribute name to test.



Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1