Fragmentor.Parser.HtmlParser.FragmentMapper (fragmentor v0.1.1)
Module responsible for converting html splitted html texts into fragments structures
Link to this section Summary
Link to this section Functions
Link to this function
to_struct(fragment)
@spec to_struct(String.t()) :: %{ :__struct__ => Fragmentor.Fragment.Code | Fragmentor.Fragment.Html | Fragmentor.Fragment.Video, :fragment_type => String.t(), optional(:content) => String.t(), optional(:language) => String.t(), optional(:provider) => String.t(), optional(:url) => String.t(), optional(:video_id) => String.t() }