View Source Bonfire.Common.Text (bonfire v0.3.5-classic-beta.7)

Link to this section Summary

Link to this section Functions

Link to this function

list_checked_boxes(text)

View Source
Link to this function

list_unchecked_boxes(text)

View Source
Link to this function

markdown_checkboxes(text)

View Source
Link to this function

maybe_markdown_to_html(nothing)

View Source
Link to this function

maybe_normalize_html(html_string)

View Source
Link to this function

maybe_render_templated(templated_content, data)

View Source
Link to this function

maybe_sane_html(content)

View Source

It is recommended to call this before storing any that data is coming in from the user or from a remote instance

Link to this function

normalise_links(content)

View Source
Link to this function

sentence_truncate(input, length \\ 250, add_to_end \\ "")

View Source
Link to this function

truncate(text, max_length \\ 250, add_to_end \\ nil)

View Source
Link to this function

underscore_truncate(input, length \\ 250)

View Source
Link to this function

verb_infinitive(verb_conjugated)

View Source

Uses the Verbs library to convert an English conjugated verb back to inifinitive form. Currently only supports irregular verbs.