html.php
Table of Contents
- he() : string
- Encodes the passed text with `htmlentities()`.
- hd() : string
- Decodes the passed text with `html_entity_decode()`.
- hse() : string
- Encodes the passed text with `htmlspecialchars()`.
- hsd() : string
- Decodes the passed text with `htmlspecialchars_decode()`.
- st() : string
- Strips the passed text with `strip_tags()`.
- nb() : string
- Turns `\n` to `<br>` in the passed text with `nl2br()`.
Functions
he()
Encodes the passed text with `htmlentities()`.
he(string $text) : string
Parameters
- $text : string
Return values
string —hd()
Decodes the passed text with `html_entity_decode()`.
hd(string $text) : string
Parameters
- $text : string
Return values
string —hse()
Encodes the passed text with `htmlspecialchars()`.
hse(string $text) : string
Parameters
- $text : string
Return values
string —hsd()
Decodes the passed text with `htmlspecialchars_decode()`.
hsd(string $text) : string
Parameters
- $text : string
Return values
string —st()
Strips the passed text with `strip_tags()`.
st(string $text) : string
Parameters
- $text : string
Return values
string —nb()
Turns `\n` to `<br>` in the passed text with `nl2br()`.
nb(string $text) : string
Parameters
- $text : string