private function TypogrifyFilter::unquote in Typogrify 8
Helper function to unquote a string.
Unquotes a string.
Parameters
string|array $text: String or array of strings to be unquoted.
Return value
string|array Original $text with simple '<' and '>' instead of HTML entities.
2 calls to TypogrifyFilter::unquote()
- TypogrifyFilter::process in src/
Plugin/ Filter/ TypogrifyFilter.php - Performs the filter processing.
- TypogrifyFilter::settingsForm in src/
Plugin/ Filter/ TypogrifyFilter.php - Generates a filter's settings form.
File
- src/
Plugin/ Filter/ TypogrifyFilter.php, line 499
Class
- TypogrifyFilter
- Provides a filter to restrict images to site.
Namespace
Drupal\typogrify\Plugin\FilterCode
private function unquote($text) {
$text = str_replace([
'<',
'>',
], [
'<',
'>',
], $text);
return $text;
}