View Source Mobilizon.Service.Metadata.Utils (Mobilizon v5.0.0-beta.1)
Tools to convert tags to string.
Summary
Functions
Returns the default description for a text
Processes a text and limits it.
Converts list of tags, containing either Phoenix.HTML.safe/0
or strings, to a concatenated string listing the tags
Removes the HTML tags from a text
Functions
Returns the default description for a text
Processes a text and limits it.
- Removes the HTML tags from a text
- Slices it to a limit and add an ellipsis character
- Returns a default description if text is empty
@spec stringify_tags([Phoenix.HTML.safe() | String.t()]) :: String.t()
Converts list of tags, containing either Phoenix.HTML.safe/0
or strings, to a concatenated string listing the tags
Removes the HTML tags from a text