Search Postgresql Archives

Re: psql HTML mode - quoting HTML characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Josh Kupershmidt [mailto:schmiddy@xxxxxxxxx]
> Sent: Wednesday, October 26, 2011 5:04 PM
> To: Nicholson, Brad (Toronto, ON, CA)
> Cc: pgsql-general@xxxxxxxxxxxxxx
> Subject: Re:  psql HTML mode - quoting HTML characters
> 
> On Wed, Oct 26, 2011 at 3:51 PM, Nicholson, Brad (Toronto, ON, CA)
> <bnicholson@xxxxxx> wrote:
> > How do I quote characters like < and > in psql's HTML mode?
> 
> From a brief look at print_html_text() and html_escaped_print() in
> psql's print.c, I don't see any way to tell psql not to escape some
> block of text in HTML print mode.

Darn.  Thanks though.

> Out of curiosity, what do you find psql's HTML mode useful for?

Quick and dirty reporting.  Set the HTML mode, run a query, and dump the output into Apache's document directory and you have a very quick, albeit crude way to present results.

Brad.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux