git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb: Decode long title for link tooltips

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 1, 2006, 16:45 UTC
Message-ID
<eforb7$fgd$1@sea.gmane.org>
In-Reply-To
<87zmcmroqf.wl@mail2.atmark-techno.com>
Yasushi SHOJI wrote:
Show 6 quoted lines
> This is a simple one liner to decode long title string in perl's
> internal form to utf-8 for link tooltips.
> 
> This is not crucial if the commit message is all in ASCII, however, if
> you decide to use other encoding, such as UTF-8, tooltips ain't
> readable any more.

Perhaps it would be better to abstract it away into esc_attr (as escape attribute) subroutine, if such situation i.e. output of generated string into some attribute of some element happens in some other place.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Yasushi SHOJINext: Yasushi SHOJI
Message 4 of 7 in “gitweb: Escape long title for link tooltips”
  1. gitweb: Escape long title for link tooltipsYasushi SHOJI, Sep 27, 2006
  2. Yasushi SHOJISep 27, 2006
  3. gitweb: Decode long title for link tooltipsYasushi SHOJI, Sep 27, 2006
  4. Jakub NarebskiOct 1, 2006
  5. Yasushi SHOJIOct 1, 2006
  6. Jakub NarebskiOct 1, 2006
  7. Jakub NarebskiOct 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.