Lucee Function Reference

writeoutput()

Writes the given string to the main response buffer regardless of
conditions established by the cfsetting tag.

Example

writeoutput(string string,[string encodeFor]):boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string string  Yes A string to write to the buffer.  
encodeFor string  No 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