Html output escaping html elements
Posted by: e k
Date: October 27, 2009 09:18AM

When doing a select that contains escapable html strings, the text gets converted to the corresponding escaped string.

ie. mysql -H -e "select '<';"
will produce
<TABLE BORDER=1><TR><TH>&lt;</TH></TR><TR><TD>&lt;</TD></TR></TABLE>

This is not how I expect it to work, and more importantly, this behavior does not occur when connecting using a client on a different machine. So far, I've tried it with

Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1
Ver 14.12 Distrib 5.0.84, for redhat-linux-gnu (x86_64) using readline 5.1
Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (x86_64) using readline 5.0

And it only occurs in the 5.0.77 version. Each is on a different machine.

What could be causing this?

Options: ReplyQuote


Subject
Views
Written By
Posted
Html output escaping html elements
6129
e k
October 27, 2009 09:18AM
2645
October 30, 2009 11:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.