[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

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

Defines 8 functions

  __unstableEscapeGreaterThan()
  escapeAmpersand()
  escapeQuotationMark()
  escapeLessThan()
  escapeAttribute()
  escapeHTML()
  escapeEditableHTML()
  isValidAttributeName()

Functions
Functions that are not part of a class:

__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

param: value Original string.
return: Escaped 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 still permitted.

param: value Original string.
return: Escaped string.

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

param: value Original string.
return: Escaped string.

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

param: value Original string.
return: Escaped string.

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

param: value Attribute value.
return: Escaped attribute value.

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

param: value Element value.
return: Escaped HTML element value.

escapeEditableHTML(value)   X-Ref
Returns an escaped Editable HTML element value. This is different from
`escapeHTML`, because for editable HTML, ALL ampersands must be escaped in
order to render the content correctly on the page.

param: value Element value.
return: Escaped HTML element value.

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

param: name Attribute name to test.
return: Whether attribute is valid.



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref