Add first step of creating an Article
This commit is contained in:
14
lib/outlook/html_preparations.ex
Normal file
14
lib/outlook/html_preparations.ex
Normal 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
|
||||
Reference in New Issue
Block a user