html - how do i format this url so it displays in javascript? -


I have this URL that I will have to give as a JavaScript string I know that I need to avoid characters, But no matter what I do, can not I get it right?

  var v = "& lt; a href =" www.youbigboy.com/showthread.php?t=1847 "& gt; www.youbigboy.com/showthread.php? T = 1847 & lt; / a & gt; ";    

You are using double quote marks with double quotation marks. Lt; a href = 'www.youbigboy.com / showthread.php? T = 1847' & gt; www.youbigboy.com/showthread.php? T = 1847 & lt; / a & gt; "; << / code>

  • \
      Var v = "& lt; a href = \" www.youbigboy.com/showthread.php?t=1847\">www.youbigboy.com/showthread.php?t=1847</ A & gt; ";    
    • Change the double quotes outside string for single quotes
        Var v = '& lt; A href = "www.youbigboy.com/showthread.php?t=1847" & gt; Www.youbigboy.com/showthread.php? T = 1847 & lt; / A & gt; ';     

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -