Filter hook 'process_text_diff_html'

in WP Core File wp-includes/class-wp-text-diff-renderer-table.php at line 208

Description

Contextually filters a diffed line. Filters TextDiff processing of diffed line. By default, diffs are processed with htmlspecialchars. Use this filter to remove or change the processing. Passes a context indicating if the line is added, deleted or unchanged.

Occurrences

Filename Line Number
wp-includes/class-wp-text-diff-renderer-table.php 208
wp-includes/class-wp-text-diff-renderer-table.php 234
wp-includes/class-wp-text-diff-renderer-table.php 259

Parameters

Type Name Description
string $processed_line The processed diffed line.
string $line The unprocessed diffed line.
string $context The line context. Values are 'added', 'deleted' or 'unchanged'.

PHP Doc

/**
				 * Contextually filters a diffed line.
				 *
				 * Filters TextDiff processing of diffed line. By default, diffs are processed with
				 * htmlspecialchars. Use this filter to remove or change the processing. Passes a context
				 * indicating if the line is added, deleted or unchanged.
				 *
				 * @since 4.1.0
				 *
				 * @param string $processed_line The processed diffed line.
				 * @param string $line           The unprocessed diffed line.
				 * @param string $context        The line context. Values are 'added', 'deleted' or 'unchanged'.
				 */