All,

I'm trying to help out a client today and working in C#/ASP (a place I do not 
know well). 

I'm adding some meta description and keywords to the pages. The logic is all in 
place. But I have a small problem I just cannot find the solution to. 

In the page header I've added the lines

<meta name="description" content="<%=sPage_Meta_Desc%>" />
<meta name="keywords" content="<%=sPage_Meta_Keywords%>" />


When I view the test page 
https://shop.wholeharvest.com/content.aspx?PgId=2&Title=About-Us the source 
actually appears as 

<meta name="description" content="&lt;%=sPage_Meta_Desc%>" />
<meta name="keywords" content="&lt;%=sPage_Meta_Keywords%>" />
(Note the &lt;)

If I remove the double-quotes wrapped around the variable output this works as 
expected. But this then creates invalid HTML. 

So my question is how do I echo out the respective variables within double 
quotes?

Paul

-- 
Our Web site: http://www.RefreshAustin.org/

You received this message because you are subscribed to the Google Groups 
"Refresh Austin" group.

[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.

[ Unsubscribe ]
To unsubscribe from this group, send email to 
[email protected]

[ More Info ]
For more options, visit this group at 
http://groups.google.com/group/Refresh-Austin

Reply via email to