]> Lady’s Gitweb - Gitweb/commit
gitweb: Add new option -nohtml to quot_xxx subroutines
authorJakub Narebski <redacted>
Sun, 17 Feb 2008 17:48:13 +0000 (18:48 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
commit0d53536c5b2108702d45d7fb4e6ea1575fbb6593dab9a916023742380cfb1da1
tree95431f253fbb474329b84cfff3f638f44472709f934d950b0ade6c2f1107f48e
parentfb80fbe55d390ada4e110f039b13b9d5588a87eabe86e83158f715d7dcded093
gitweb: Add new option -nohtml to quot_xxx subroutines

Add support for new option -nohtml to quot_cec and quot_upr
subroutines, to have output not wrapped in HTML tags.  This makes
those subroutines suitable to quoting attributes values, and for plain
text output quoting.  Currently this API is not used yet.

While at it fix whitespace, and use ';' as delimiter, not separator.

The option to not wrap quot_cec output in HTML tag were proposed
originally in patch:
  "Don't open a XML tag while another one is already open"
  Message-ID: <redacted>
by Robert Schiele.  Originally the parameter was named '-notag', was
also supportted by esc_html (but not esc_path) which passed it down to
quot_cec.  Mentioned patch was meant to fix the bug Martin Koegler
reported in his mail
  "Invalid html output repo.or.cz (alt-git.git)"
  Message-ID: <redacted>
which was fixed in different way (do not use esc_html to escape and
quote HTML attributes).

Signed-off-by: Robert Schiele <redacted>
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.254928 seconds and 4 git commands to generate.