Previous Page
encode()

Solar_Markdown_Extra
escape()

Next Page
getLink()

escape()

public string escape ( string $text, int $quotes default 2 )

Escapes HTML in source text.

Inherited from Solar_Markdown.

Parameters

  • (string) $text: Source text.
  • (int) $quotes: How to escape quotes; default ENT_COMPAT.

Returns

  • (string) The escaped text.

Description

Escapes HTML in source text.

Uses htmlspecialchars() with UTF-8.