Solar_Markdown_Extra::escape()

public string Solar_Markdown_Extra::escape ( string $text , int $quotes = 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.



Local