I have a problem with strings (javascript)

Discussion in 'Programming' started by LimeBlast, Jun 29, 2008.

  1. #1
    Hi all,

    I am develloping an application and want to convert simple text to escape function (javascript) with all the text I have in the database.

    The problem is that my text include these two caractures " ' !

    I cant use escape/unescape function because this caracture (') makes a string conflict.

    What should I do!:confused:
     
    LimeBlast, Jun 29, 2008 IP
  2. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #2
    you can replace it with equvilant escape sequence.

    Show me the part of code that conflicts, and sample string that makes problem.

    regards
     
    Vooler, Jun 30, 2008 IP