Meeseeks.Result.data

You're seeing just the function data, go back to Meeseeks.Result module for more information.
Link to this function

data(result, opts \\ [])

View Source

Specs

data(t(), Keyword.t()) :: String.t()

Returns the combined data of result or result's children, which may be an empty string.

Once the data has been combined the whitespace is compacted by replacing all instances of more than one whitespace character with a single space and then trimmed.

Data is the content of <script> or <style> tags, or the content of comments starting with "[CDATA[" and ending with "]]". The latter behavior is to support the extraction of CDATA from HTML, since HTML5 parsers parse CDATA as comments.

Options

  • :collapse_whitespace - Boolean determining whether or not to replace blocks of whitespace with a single space character. Defaults to true.
  • :trim - Boolean determining whether or not to trim the resulting text. Defaults to true.