Browse Source

fix: strip content for e-*

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

+ 2
- 2
lib/items.ex View File

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

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

defp parse_prop(_, _, _, _), do: nil


Loading…
Cancel
Save