Skip to main content
Inspiring
September 6, 2007
Question

Need Escape Sequence for Double-Quote

  • September 6, 2007
  • 2 replies
  • 1507 views
OS = Win XP SP2
Prod = RoboHelp HTML 6
SSL = WebHelp
ASP = <% Response.Write("Hello, world!") %>

When I insert the line of ASP above into an RH template or topic with TrueCode, RH changes each double-quote (") to a character entity reference (&quot;) when generating WebHelp. I tried a couple of escape characters but both failed.

* <% Response.Write("Hello, world!") %> produced <% Response.Write(&quot;Hello, world!&quot;) %>
* <% Response.Write(\"Hello, world!\") %> produced <% Response.Write(\&quot;Hello, world!\&quot;) %>
* <% Response.Write(""Hello, world!"") %> produced <% Response.Write(&quot;&quot;Hello, world!&quot;&quot;) %>

What is the proper escape sequence for a double-quote?

-- The Gunslinger

This topic has been closed for replies.

2 replies

Inspiring
September 6, 2007
A shot in the dark:

Have you tried

/"

forward slash quote

Harvey
Inspiring
September 6, 2007
Thanks for the suggestion. I tried it after reading your post. Unfortunately, it doesn't work.
<% Response.Write(/"Hello, world!/") %> produces <% Response.Write(/&quot;Hello, world!/&quot;) %>
Captiv8r
Legend
September 6, 2007
Hi again

How does your response write work with JavaScript? I'm thinking you might be able to coax what you need by using JavaScript to perform a "write in" of the needed code.

Then again, maybe it's tilting at windmills.

Cheers... Rick
Captiv8r
Legend
September 6, 2007
Hi The Gunslinger

Have you tried &#34;?

In case the forum munges or attempts to interpret that: Ampersand Pound 34 Semicolon.

Cheers... Rick
Inspiring
September 6, 2007
Unfortunately, it doesn't work. Maybe, because this replaces a character entity reference with a numeric character reference. ASP will recognize a literal character but will not recognize a character reference. AFIK, I really need an escape sequence in front of the double-quote to force RH to output a literal double-quote that ASP can read.