html()
Functions prefixed with html_
perform tasks that are useful when dealing with html markup. The helper maps directly to the Html
PHP class and its methods. For example:
is the PHP equivalent of the following:
NOTE: Methods in camelCase should be converted to snake_case.
html_strip()
Removes HTML from a string.
html_limit()
Limits HTML with specific length with a proper tag handling.
To add a suffix when limit is applied, pass it as the third argument. Defaults to ...
.
html_clean()
Cleans HTML to prevent most XSS attacks.
html_email()
Obfuscates an e-mail address to prevent spam-bots from sniffing it.
For example:
Copyright © 2025 Winter CMS