elixir_extentions
v0.1.0
  • Pages
  • Modules

    ElixirExtensions.Core.StringExt (elixir_extentions v0.1.0)

    Functions to string truncate

    Summary

    Functions

    truncate(text, options \\ [])

    Copied from https://github.com/ikeikeikeike/phoenix_html_simplified_helpers/blob/master/lib/phoenix_html_simplified_helpers/truncate.ex

    Functions

    Link to this function

    truncate(text, options \\ [])

    Copied from https://github.com/ikeikeikeike/phoenix_html_simplified_helpers/blob/master/lib/phoenix_html_simplified_helpers/truncate.ex

    Examples

    iex> truncate("hello world", length: 5)
    "he..."

    Hex Package Hex Preview (current file) Download ePub version

    Built using ExDoc (v0.30.2) for the Elixir programming language