Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

escape()

Description

Output encoding for HTML context when unsafe input is rendered inside it

Parameters

ColumnTypeDefaultDescription
$unsafe: string
| ENT_QUOTES ""
$name string "icon"
$current string ""

Return

string

Location

include/render_functions.php lines 5815 to 5818

Definition

 
function escape(string $unsafe): string
    
{
    return 
htmlspecialchars($unsafeENT_QUOTES ENT_SUBSTITUTE);
    }

This article was last updated 26th April 2024 21:35 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.