Skip to content

View Helpers

hAttr()

hAttr() — returns string

Available in: controller Category: Sanitization Functions

Encodes a value for safe use inside an HTML attribute. Use when building attribute values manually: <div title=“#hAttr(user.bio)#”>.

NameTypeRequiredDefaultDescription
valueanyyesThe value to encode for HTML attribute context.