Earmark v1.2.4 Earmark.Helpers
Link to this section Summary
Functions
Encode URIs to be included in the <a>
elements
Replace <, >, and quotes with the corresponding entities. If
encode
is true, convert ampersands, too, otherwise only
convert non-entity ampersands
Expand tabs to multiples of 4 columns
Remove newlines at end of line
Regex.replace
with the arguments in the correct order
Link to this section Functions
Link to this function
encode(html)
Encode URIs to be included in the <a>
elements.
Percent-escapes a URI, and after that escapes any
&
, <
, >
, "
, '
.
Link to this function
escape(html, encode \\ false)
Replace <, >, and quotes with the corresponding entities. If
encode
is true, convert ampersands, too, otherwise only
convert non-entity ampersands.
Link to this function
expand_tabs(line)
Expand tabs to multiples of 4 columns
Link to this function
remove_line_ending(line)
Remove newlines at end of line
Link to this function
replace(text, regex, replacement, options \\ [])
Regex.replace
with the arguments in the correct order