Solved

Handling Ampersands for SVG

Posted on 2004-08-27
1
280 Views
Last Modified: 2013-11-19
Hello and thanks for viewing my question. I have a database backing an ASP/VBScript web app and have been running into problems when the string values that are read from the DB contain ampersands. The I belive the VBScript thinks the ampersand denotes a concatenation, thereby crashing the system. I haven't really thought too much about it, but the fact that the ASP page is really is an SVG object not a HTML object my have something to do w/ the problem but I doubt it.

I remember running into problems like this when using the DOM, and there was a nice tool where you could specify innerText to avoid confusion with HTML tags in innerHTML, I wanted to know if there is something like this for VBScript in case I run into other special characters other than the ampersand. Please let me know if you should require further explanation or code. Thanks!

-gj
0
Comment
Question by:graphicjunkie
1 Comment
 
LVL 46

Accepted Solution

by:
fritz_the_blank earned 50 total points
ID: 11916424
You could try using SErver.HTMLEncode(strYourString)

That will output the sting rather than evaluate it.

FtB
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Update static table with two columns and multiple rows... 15 83
CSS HELP 6 83
site launch date and last modified date 3 80
Animated .jpg? 13 57
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to count occurrences of each item in an array.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now