com\setasign\SetaFramework\View\Helper

Escape Class Escape

File: /SetaFramework/src/View/Helper/Escape.php

Used to escape strings for output in browsers.

Usage only make sense in Http-Application.

Class hierarchy

Summary

Properties

$encoding

protected string Escape::$encoding

Encoding-param for htmlspecialchars()

See

$flags

protected ?int Escape::$flags

Flags-param for htmlspecialchars()

See

Methods

__construct()

public Escape::__construct (
?int $flags = null,
string $encoding = 'UTF-8'
)

Constructor

Parameters
$flags : ?int
 
$encoding : string
 

__invoke()

public Escape::__invoke (
string $string
): string

Returns a string with conversions of different characters Reserved characters are for example '"', '<', '>', ...

Parameters
$string : string