Solved

Handling Ampersands for SVG

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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 …

726 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