-
In version 0.9,
`Floki.text(["hello world"])` would return `"hello world"`
In version 0.13,
`Floki.text(["hello world"])` returns `""`
note that
`Floki.text([{"div", [], ["hello world"]}])` ret…
boydm updated
7 years ago
-
I tried to update a project to the new `0.12.0` release, but ran into a bug. Here is a minimal reproduction of the error:
```elixir
html = """
Error MessageThere has bee…
-
I'm on Mac OS X El Capitan (10.11.6). Elixir version
Erlang/OTP 19 [erts-8.2] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.4.1
```
==> html5ev…
-
Example first:
```html
FUN & COOL
```
What I want to achieve is that when I have found "panel-body" already, I need to fetch something (like heading text) from "panel-heading".
What I k…
-
Suppose I want to filter out all divs that have a particular attribute. I can't see how to do that with `filter_out`.
Consider this HTML. It has one div with a `class` and one without:
``` elixir
h…
-
In my case, I'm attempting to use the pseudo-class `:not`selector as `"div:not(.invisible)#error"`
```elixir
pry(1)> Floki.find(html, "div:not(.invisible)#error")
iex(15)> [warn] Unknown token '(…
-
[warn] 404 Page not Found on https://eztv.ag/page_1
[error] GenServer #PID terminating
** (FunctionClauseError) no function clause matching in Floki.Finder.traverse/4
lib/floki/finder.ex:61: Fl…
-
I use Floki to parse XML. When I need to find "media:thumbnail" it returns me empty list.
Example:
iex(2)> Floki.find(response.body, "item") |> List.first
{"item", [],
[{"title", [], ["Test"]},…
-
```
html = """
Tag title - test
"""
Floki.find(html, "meta[property=og:image]")
[warn] Unknown token {:unknown, 1, ':'}. Ignoring.
[]
```
Hi. Basi…
-
I did a google and your name came up! Did you ever have a quick stab at this? I have a feeling it would be very useful and much better than :mochiweb. With Rustler it should also be quite safe too.
…