Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. XML
  3. XPath
  4. Reference
  5. Functions
  6. normalize-space

normalize-space

Thenormalize-space function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string.

Syntax

normalize-space( [string] )

Parameters

string (optional)

The string to be normalized. If omitted, string used will be the same as the context node converted to a string.

Return value

The normalized string.

Specifications

XPath 1.0 4.2

Gecko support

Supported.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp