normalizeWhitespace

fnstring normalizeWhitespace(string text, bool stripLeadingAndTrailing = true)

Normalizes the whitespace in the given text according to HTML rules.

History

Added March 25, 2022 (dub v10.8)

The stripLeadingAndTrailing argument was added September 13, 2024 (dub v11.6).