GravityView  2.10.1
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-textarea-html.php File Reference

Go to the source code of this file.

Variables

 $allow_html = apply_filters( 'gravityview/fields/textarea/allow_html', \GV\Utils::get( $field_settings, 'allow_html', true ), $gravityview )
 
 $entry = $gravityview->entry->as_entry()
 
 $field_settings = $gravityview->field->as_configuration()
 
if(! isset( $gravityview)||empty( $gravityview->template)) $value = $gravityview->value
 The default textarea field output template. More...
 
if( $allow_html) else
 
if(! empty( $field_settings['trim_words'])) if(! empty( $field_settings['make_clickable'])) if (! empty($field_settings[ 'new_window']))
 

Variable Documentation

◆ $allow_html

$allow_html = apply_filters( 'gravityview/fields/textarea/allow_html', \GV\Utils::get( $field_settings, 'allow_html', true ), $gravityview )
Runs Filter:
gravityview/fields/textarea/allow_html Allow the following HTML tags and strip everything else.
Since
2.8
Parameters
bool$allow_htmlWhether to allow rendering HTML submitted in the textarea field. If disabled, output will be escaped with esc_html(). Default: true.
\GV\Template_Context$gravityviewThe context

Definition at line 24 of file field-textarea-html.php.

◆ $entry

$entry = $gravityview->entry->as_entry()

Definition at line 15 of file field-textarea-html.php.

◆ $field_settings

$field_settings = $gravityview->field->as_configuration()

Definition at line 16 of file field-textarea-html.php.

◆ $value

if (! isset($gravityview)||empty($gravityview->template)) $value = $gravityview->value

The default textarea field output template.

$gravityview

Since
2.0

Definition at line 14 of file field-textarea-html.php.

◆ else

if ($allow_html) else
Initial value:
{
$value = esc_html( $value )
if(! isset( $gravityview)||empty( $gravityview->template)) $value
The default textarea field output template.
Runs Filter:
gravityview/fields/textarea/allowed_kses Allow the following HTML tags and strip everything else.
Since
1.21.5.1
2.0
See also
wp_kses_allowed_html() For allowed contexts
$allowedposttags global in kses.php for an example of the format for passing an array of allowed tags and atts
Parameters
array | string$allowed_htmlContext string (allowed strings are post, strip, data, entities, or the name of a field filter such as pre_user_description) or allowed tags array (see above). [Default: 'post']
\GV\Template_Context$gravityviewThe context

Definition at line 42 of file field-textarea-html.php.

◆ if

if (! empty($field_settings[ 'trim_words'])) if (! empty($field_settings[ 'make_clickable'])) if(! empty( $field_settings['new_window']))
Runs Filter:
gravityview_excerpt_more Modify the "Read more" link used when "Maximum Words" setting is enabled and the output is truncated
Since
1.16.1
Parameters
string$excerpt_moreDefault: ...

Definition at line 66 of file field-textarea-html.php.