& and &



How can one stop a browser from converting

&

to

& ?

We have a textarea in our system wehre a user can type in some html code
and have it saved to the database. When the data is retireved and
redisplayed it is displayed as simply &.

HTML snippet:

<TEXTAREA NAME="p_html" ROWS=6 COLS=70 ALIGN="VIRTUAL" WRAP="YES">
fred
&
&amp;
</TEXTAREA>

When displayed, the user predictably sees

fred
&
&

What workarounds are there for this - I am sure it's a problem for
others - is there a way of "escaping" the value before display?


--

jeremy

.



Relevant Pages

  • Re: WebBrowser not displaying page in Mobile application
    ... Under debug I could see the HTML code, ... displayed in the WebBrowser object it was corrupted. ... at this point it would display an exception within ... You can send feedback directly to my manager at: ...
    (microsoft.public.vsnet.general)
  • Re: Any XML expert..?help.....
    ... > in XML.so when u open the xml file by using Internet Explorer, ... > this is a html code that imported varible from xml to html code and ... > display in Internet Explorer.... ...
    (comp.programming)
  • Re: Port 119 blocked at work and I want it opened
    ... | doesn't your distrust in MS is at such a low level that your only solution ... simply alter the display, rather than actually nix HTML code in the message. ... I can see the HTML code in plain text. ...
    (comp.security.firewalls)
  • Re: 96 DPI /120 DPI conflict - a possible solution
    ... having some problems displaying our new website on different PC's I ... our website to display properly on 120DPI widescreen laptops. ... disappeared in Firefox. ... after a bit of playing around with the HTML code (which I'm ...
    (microsoft.public.publisher.webdesign)
  • How to retain " and marks
    ... I have a <textarea> on a form which contains html code. ... post this to my php page and display the html code (I am using echo to ...
    (alt.php)