Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Handling Ampersands for SVG

Posted on 2004-08-27
1
Medium Priority
?
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 46

Accepted Solution

by:
fritz_the_blank earned 200 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

636 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