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 5817 to 5820

Definition

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

This article was last updated 5th May 2024 13:05 Europe/London time based on the source file dated 3rd May 2024 14:45 Europe/London time.