- Home /
 
               Question by 
               MaT227 · Aug 30, 2013 at 08:15 AM · 
                javascriptwwwurl  
              
 
              ExternalEval and Url Error
Hi I have :
 Application.ExternalEval("window.open('http://domain.com/link.mstrURL+"','_blank')");
and in my link.mstrURL, I have my specific link. 
It works well but it seems that when I have mstrURL with a ' in the string it fails, how can I avoid that ?
Thanks a lot !
               Comment
              
 
               
              actually, try this: ("window.open('http://domain.com/link.mstrURL+" + "','_blank')")
 
               Best Answer 
              
 
              Answer by MaT227 · Aug 30, 2013 at 08:36 AM
I added a \\ in front of my ' and it seems to work but is there a function to do that automatically ?
Not that I know of. This is just another one of those crazy string problems, someone really needs to add a new set of characters to the keyboard specifically for programmers using strings.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                