String Function HTMLId()

function HTMLId(
$text
)

Name in Zenario 8

ze\ring::HTMLId()

Description

Encodes a string into something suitable for a HTML ID by replacing anything non-alphanumeric with an underscore.

Where You Can Use It

From Zenario 7.0 onwards.

Parameters

$text

A string that may contain non-alphanumeric characters.

Return Value

The same string with the non-alphanumeric characters replaced.