Solved

Handling Ampersands for SVG

Posted on 2004-08-27
1
284 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hide row when retrieving data from database 6 69
Problem to picture file 3 81
RegEx Help - open to other simple suggestions 8 58
Html Table Looping (part 2) 5 27
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

839 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