-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend fl-contains
to mach on children text as well
#382
Labels
Comments
Hey @revati 👋 You actually can archive similar results using a descendant combinator with the "all" selector (" "<div><span>Some</span></div>"
|> Floki.parse_document!()
|> Floki.find("div *:fl-contains('Some')")
|> IO.inspect(label: :second)
# Output: second: [{"span", [], ["Some"]}]
# Desired output: [{"div", [], [{"span", [], ["Some"]}]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature goal
Extend
fl-contains
to mach on children text as well.The text was updated successfully, but these errors were encountered: