Browse Source

fix: remove parent node for e-*

tags/microformats2-0.0.4
Christian Kruse 5 years ago
parent
commit
4aa992ab7f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/items.ex

+ 2
- 2
lib/items.ex View File

@@ -105,8 +105,8 @@ defmodule Microformats2.Items do
end
end

defp parse_prop("e-" <> _, child, _, _) do
%{html: Floki.raw_html(child),
defp parse_prop("e-" <> _, child = {_, _, children}, _, _) do
%{html: Floki.raw_html(children),
text: Floki.text(child)}
end



Loading…
Cancel
Save