]> Lady’s Gitweb - Gitweb/commit
gitweb: Pass esc_html_hl_regions() options to esc_html()
authorJakub Narębski <redacted>
Wed, 11 Apr 2012 21:18:39 +0000 (23:18 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commitd7f282a727c1543f204775243adb5e7a9444f220c96ddeb132847f95b79a1b26
treef96caf1ab30e9ae741136fab7c7ed93a1d8490535aa83b54ce6882c8f88b2852
parent1c065aeeb084074bbebc0b5465f3cb4733c9aae370fb70f290c341ca32d78bdc
gitweb: Pass esc_html_hl_regions() options to esc_html()

With this change, esc_html_hl_regions() accepts options and passes them
down to esc_html().  This may be needed if a caller wants to pass
-nbsp=>1 to esc_html().

The idea and implementation example of this change was described in
337da8d2 (gitweb: Introduce esc_html_match_hl and esc_html_hl_regions,
2012-02-27).  While other suggestions may be more useful in some cases,
there is no need to implement them at the moment.  The
esc_html_hl_regions() interface may be changed later if it's needed.

[mk: extracted from larger patch and wrote commit message]

Signed-off-by: Jakub Narębski <redacted>
Signed-off-by: Michał Kiedrowicz <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.177316 seconds and 4 git commands to generate.