首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

normalize-space()

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

The normalize-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

代码语言:javascript
复制
normalize-space( [string] )

Arguments

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

Returns

The normalized string.

Defined

Gecko support

Supported.

代码语言:txt
复制
 © 2005–2017 Mozilla Developer Network and individual contributors.

Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.

扫码关注腾讯云开发者

领取腾讯云代金券