Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extra characters after close-quote - html

Status
Not open for further replies.

DaveSos

Programmer
Oct 29, 2008
1
US
I am running into an issue where I get the following error message:

extra characters after close-quote

What I am doing is reading the html code from a web server into a buffer. Whenever I try to do anything with that buffer I get the error. The reason for the error is that in the html code is a line similar to:

<input "name=test">

I can see that there is a > after the " which is generating the error, but I don't know how to get around it.

I also see the same error as I read data out of a database. The data I'm reading is:

"1": "1"

Again, it doesn't like the : after the ". However, this is data in a database which I can't change.

Does anyone know how to get around this???

Dave S.
 
When you get the HTML data into the buffer, is that "buffer" a string? If so you can try making the quotes (") explicit: regsub -all {\"} $a {\\"} b which will make all occurrences of " in string, a, into \" in string, b. Likewise with the database data if it is in a string.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top