View Helpers
h()
Signature
Section titled “Signature”h() — returns string
Available in: controller
Category: Sanitization Functions
Description
Section titled “Description”Encodes a value for safe HTML output. Use in templates to prevent XSS:
#h(user.name)# instead of #user.name#.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
value | any | yes | — | The value to encode for HTML output. Converted to string if not already. |