Add first step of creating an Article

This commit is contained in:
Thelonius Kort
2022-12-27 23:23:16 +01:00
parent bdc12d6b06
commit 5cbf05f650
12 changed files with 211 additions and 6 deletions

View File

@ -0,0 +1,14 @@
defmodule Outlook.HtmlPreparations do
@moduledoc """
The HtmlPreparations context.
"""
alias Outlook.HtmlPreparations.HtmlPreparation
def convert_raw_html_input(html) do
html
|> Floki.parse_fragment!
|> HtmlPreparation.floki_to_internal
|> HtmlPreparation.set_sibling_with
end
end