Previous Page
dump()

Solar_Markdown_Extra
encode()

Next Page
escape()

encode()

public string encode ( string $text, bool $only_backslash default false )

Encodes special Markdown characters so they are not recognized when parsing.

Inherited from Solar_Markdown.

Parameters

  • (string) $text: The source text.
  • (bool) $only_backslash: Only encode backslashed characters.

Returns

  • (string) The encoded text.

Description

Encodes special Markdown characters so they are not recognized when parsing.