Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8214939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:37:22+00:00 2026-06-07T11:37:22+00:00

I am passing the following to my extjs grid. how do i escape if

  • 0

I am passing the following to my extjs grid.
how do i escape if there any quotes inside the varaible.

append rval "'description':'$description',"
append rval "'short_description':'$shortDescription',"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:37:24+00:00Added an answer on June 7, 2026 at 11:37 am

    Well you could use regsub to substitute all the single quotes e.g.

    regsub -all "\'" $rval "\\\'" rval  
    regsub -all "\"" $rval "\\\"" rval
    

    The first line will place a backslash in front of every apostrophe in the rval variable. The second line will place a backslash in front of every double quote. You have to escape the apostrophe, the double quote and the backslash itself in the regsub command too, hence the triple backslash in the 2nd last argument to regsub

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There was a question regarding passing taking the following function template, and instantiating it
I am passing the following URL in order to load a report in SSRS.
I'm passing the following parameter as an url fragment to flex. (#groupID=2385) This works
jCarousel documentation states the following: By passing the callback function itemLoadCallback as configuration option,
Following on from a comment I made on this: passing std::vector to constructor and
I have the following RSpec example which is passing: describe UsersController do it should
has anyone an idea why I have the following problem with passing locals to
I am having problems with passing arguments to new threads, I have the following
The following JSON is not passing validation. The validator complains at the first string
The following code produces a failed test, not a passing test (as I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.