You are here

public function StripTagsFilter::filter in Form API Validation 8.2

Execute filter.

Parameters

string $value: Form Element Value.

Return value

string Processed Value.

Overrides FapiValidationFiltersInterface::filter

File

src/Plugin/FapiValidationFilter/StripTagsFilter.php, line 19

Class

StripTagsFilter
Fapi Validation Plugin for Strip HTML tags filter.

Namespace

Drupal\fapi_validation\Plugin\FapiValidationFilter

Code

public function filter($value) {
  return strip_tags($value);
}