Skip to content

add "text()" function #13

Description

@gajus

Returns text of the node.

Throws error if node contains anythings that not a text.

Example:

h1::text()

Would throw an error in case of:

screen shot 2017-01-22 at 18 47 01

This is going to be combined with "extractText" function (used to extract text from the node when it contains other elements).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions