Click to See Complete Forum and Search --> : help with excaping quotes


chrismartz
04-02-2005, 12:30 PM
I have something like this: "<a href=" & url & " title=" & url & ">" and this is entered into the database and shows like this on the page <a href=page title=page> How can I get quotes to show up around to be correct xhtml? like <a href="page" title="page">?

phpnovice
04-02-2005, 01:33 PM
In ASP/VBScript, just double up the quotes to get a single embeded quote:

"<a href=""" & url & """ title=""" & url & """>"