making " in codes


hey
im getting lazy with my webdesignen and i want to write my own program to make some codes from user defined options..
my only problem is this:
webdesign basiccaly contains a lote of " (qoutation marks) and that will end the string typing..
sa how do i make it write:
head.Text = "<script language="javascript">"
without stopping the string at javascript

please help me.

//Martin



Answer this question

making " in codes

  • Jeremy Jarrell

    Hi,

    you could use single quotation marks for that (single quotation marks work fine with html):

    head.Text = "<script language='javascript'>"

    or escape double quotation marks by doubling them:

    head.Text = "<script language=""javascript"">"

    Hope this helps,

    Andrej



  • dmatth

    Can you be a bit more specific on what doesn't work The code above should compile and get you correct results.

    Andrej



  • cb1024

    it doesnt work ):

    and there is both " and ' ind the original script. isnt there som code for it like for "nextline" & cb*** & or what it is

    //Martin


  • mikeandd

    And what happens if you do this

    head.Text = "<script language=""javascript"">"

    Andrej



  • Chris in DFW

    okey i will try.

    i want a program to write <script language="javascript">
    my proplem is that the only way i know is to do this:
    head.text = "<script language="javascript">"
    if i do that it will only write <script language=> in the head textbox :(
    later in my javascript it also uses ' so there is a difference :(

    //Martin


  • making " in codes