ThinkPHP/Library/Vendor/Smarty/pluginsmodifier.escape.php

Smarty plugin

Functions

smarty_modifier_escape()

smarty_modifier_escape(string  $string, string  $esc_type = 'html', string  $char_set = null, boolean  $double_encode = true) : string

Smarty escape modifier plugin

Type: modifier
Name: escape
Purpose: escape string for output

Parameters

string $string

input string

string $esc_type

escape type

string $char_set

character set, used for htmlspecialchars() or htmlentities()

boolean $double_encode

encode already encoded entitites again, used for htmlspecialchars() or htmlentities()

Returns

string —

escaped input string