text(trimAndNormaliseWhitespace:)

Elements.swift:189
func text(trimAndNormaliseWhitespace: Bool = true) throws -> String
  • Get the combined text of all the matched elements.

  • Note that it is possible to get repeats if the matched elements contain both parent elements and their own

  • children, as the Element.text() method returns the combined text of a parent and all its children.

  • @return string of all text: unescaped and no HTML.

  • @see Element#text()