Loading TOC...

fn.normalizeSpace

fn.normalizeSpace(
   [$input as String?]
) as String?

Summary

Returns the specified string with normalized whitespace, which strips off any leading or trailing whitespace and replaces any other sequences of more than one whitespace characters with a single space character (#x20).

Parameters
$input The string from which to normalize whitespace.

Example

fn.normalizeSpace(" \n\
this \n\
is    \n\
  a string   \n\
  ");

=> this is a string

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy