public static function CodeFilter::phpTagCallback in Code Filter 8
Callback to escape content of <?php ?>, [?php ?], <% %>, and [% %] tags.
Parameters
array $matches: An array of matches passed by preg_replace_callback().
Return value
string A formatted string.
File
- src/
Plugin/ Filter/ CodeFilter.php, line 94
Class
- CodeFilter
- Text filter for highlighting PHP source code.
Namespace
Drupal\codefilter\Plugin\FilterCode
public static function phpTagCallback(array $matches) {
return self::escape($matches[2], 'php');
}