Module function reference

attribute

A reference entry for attribute

Module function · HTML

attribute attribute (string name, mixed value) ⇒ string

Creates one escaped HTML attribute.

Example

YASS
$html = HTML::attribute("title", "A & B")

Input: name="title", value="A & B"

Output: title="A & B"