Earmark v1.3.2 Earmark.Helpers View Source
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) View Source
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) View Source
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) View Source
Expand tabs to multiples of 4 columns
Link to this function
remove_line_ending(line) View Source
Remove newlines at end of line
Link to this function
replace(text, regex, replacement, options \\ []) View Source
Regex.replace
with the arguments in the correct order