# Helper

This component acts as a proxy for all the HivePress helper functions defined in the `includes/helpers.php` file. With the **Helper** component, you can call a helper function anywhere in the code without declaring the PHP namespace. For example, the code below calls the `sanitize_html` helper that removes malicious HTML tags.

```php
hivepress()->helper->sanitize_html( 'custom HTML content' );
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hivepress.io/developer-docs/framework/components/helper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
