Spec-Zone.ru › ColdFusion

esapiEncode

Calling the various encodeFor functions: encodeForHTML, etc.

esapiEncode(encodeFor,string) → returns string

This function requires Lucee 4.5 and up. Not supported on Adobe ColdFusion, etc.
  • Lucee4.5+
  • See Also: esapiDecode

    Argument Reference

    encodeFor string
    Required

    Encode for what, valid values are:- css: for output inside Cascading Style Sheets (CSS)- dn: for output in LDAP Distinguished Names- html: for output inside HTML- html_attr: for output inside HTML Attributes- javascript: for output inside JavaScript- ldap: for output in LDAP queries- url: for output in URL- vbscript: for output inside vbscript- xml: for output inside XML- xml_attr: for output inside XML Attributes- xpath: for output in XPath.

    string string
    Required

    String to encode.

    Compatibility

    Lucee:

    DEPRECATED since version 5 Warning: esapiEncode is deprecated, use encodeForHTML or any of the many other encodefor functions instead!

    Examples
    Sample code invoking the esapiEncode function

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/esapiencode

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API