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 5882 to 5885

Definition

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

This article was last updated 14th July 2024 19:05 Europe/London time based on the source file dated 11th July 2024 14:10 Europe/London time.