W3C home > Mailing lists > Public > www-html@w3.org > July 1998

Re: HTML IN "INPUT" attribute

From: Rasmus Kaj <kaj@interbizz.se>
Date: Thu, 30 Jul 1998 11:26:02 -0400 (EDT)
To: Richard@coatesr.demon.co.uk
Cc: www-html@w3.org
Cc: kaj@interbizz.se
Message-Id: <19980730172555Y.kaj@interbizz.se>
>>>>> "RIC" == Richard Ian Coates <Richard@coatesr.demon.co.uk> writes:

 RIC> I hope I have submitted this to the right place! 
 RIC> (apologies if I haven't).

Well, this list isn't for Q&A, but for suggesting new features etc to
future versions of HTML, or point out problems with the current
version ...

 RIC> Requirement:    To be able to display HTML formatting commands, like 
 RIC>                 "<b>" in an INPUT field.

You need to encode the '<', '>' and '&' chars. For example, the user
might have entered "Me & <b>your mother</b>.", what you should
generate to give this default is something similar to

<input ...  value="Me &amp; &lt;your mother&gt;.">

// Rasmus

kaj@cityonline.se --------------- Rasmus Kaj - http://www.e.kth.se/~kaj/
 \               CityOnLine IB Production AB - http://www.CityOnLine.se/
  \--------------------- Intolerance is the last defense of the insecure
Received on Thursday, 30 July 1998 11:27:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:48 UTC