e()
e(string $input) : string
Escapes HTML characters
Alias for htmlspecialchars([input], ENT_QUOTES)
Parameters
| string | $input | Text to escape. |
Returns
string —Escaped text.
HTML helper.
Contains utilities to parse and format HTML and to build elements.
building_panel(\Building|\Decoration|\K_Building|\K_Decoration $building) : string
Generates a building panel.
| \Building|\Decoration|\K_Building|\K_Decoration | $building | Entity to get the info from. |
HTML content for a building panel. Empty on error.
item_panel(\Inventory $item) : string
Generates a item panel.
| \Inventory | $item | Entity to get the info from. |
HTML content for a building panel. Empty on error.