Alex,
Quote:
Hmm, good point! The problem lies with the HTML of course. When you do the tag:
<input name="Description" value="$rec{'Description'}">
If $rec{'Description'} contains a " mark in it, your in for trouble. Does anyone know how to escape it in
all browsers? I tried using double "" and also backslashes, but neither worked. Short term fix, use
single quotes ' or none at all if possible.
Actually, I don't seem to have a problem with html in the description field at all. I used to use "&" followed by "quot;" (I had to show it this way because UBB converts it to " - I thought HTML was off?) when I wanted a double quote used, but when I saved the record, it was always converted to the double quote. If I went back to modify it, it still was a double quote and never seemed to cause any problems. Now I just use the double quote itself and have experienced no problems.
The same thing happens, by the way, if I use "& #174; or "& copy;" (less the spaces) for the Registered or Copyright symbols (in any field, not just the description). They appear as the appropriate symbol when the record is saved, but as a graphic line/block when modifying the record.
Maybe if the original text (& quot;, & #174;, & copy;, etc.) was not converted, it might clear up some of the problems.
For the double quote, did you try using the "& #34" (less the space)? When I had problems with URLs that contained the pipe symbol and other strange characters, I found that using the equivalent &#xxx value for the character in the URL kept links from hosing the URL. It might work as well in the other record fields.
------------------
Bob Connors
bobsie@orphanage.com www.orphanage.com/goodstuff/ goodstufflists.home.ml.org/ [This message has been edited by Bobsie (edited January 15, 1999).]