# give/4.16.8.1/src/Framework/FieldsAPI/Html.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 39 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Framework/FieldsAPI/Html.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/Framework/FieldsAPI/Html.php
- Modified: 2023-06-09T00:46:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Framework/FieldsAPI/Html.php#L10-L20`.

```php
<?php

namespace Give\Framework\FieldsAPI;

/**
 * @since 2.12.2
 */
class Html extends Element
{
    const TYPE = 'html';

    /** @var string */
    protected $html = '';

    /**
     * Set the HTML for the element.
     *
     * @since 2.28.0 added types
     * @since 2.12.2
     */
    public function html(string $html): self
    {
        $this->html = $html;

        return $this;
    }

    /**
     * Get the HTML for the element.
     *
     * @since 2.28.0 added types
     * @since 2.12.2
     */
    public function getHtml(): string
    {
        return $this->html;
    }
}

```
