
12-17-2003, 04:54 PM
|
|
Newcomer
|
|
Join Date: Dec 2003
Posts: 3
|
|
hidden characters in a textbox
|
I'm writing a program that palces some HTML code into a textbox. Then I save the text in the textbox to a file.html. Why? I plan to make hundreds of similar html pages w/ only the title and the image changed. When I do this, the html code has extra quotes in it. how do I get rid of them?
EXAMPLE CODE: (img code not included)
dim name, wrap as string
wrap=chr(13) & chr(10)
page="<html" & wrap & _
"<head>" & wrap & _
"<title>" & name & "</title>" & wrap & _
"</head>" & wrap & _
"<body>" & wrap & _
"<p><font face=""century gothic"" <b>" & name & "</b>" & _
"</font></p>" & wrap & _
"</body>" & wrap & _
"</html>"
text1=page
I then use commondialog to save the text in text1 as an html file. Now, the problem is the quotes before the first <html> tag as well as the last <html> tag appear in the html source code. Also, the quotes around the font "century gothic", that I need to make it a string, appear in the source code. I have no idea what to do in this situation. All wisdom welcome. Feel free to clown me!
|
|