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 3459164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:04:23+00:00 2026-05-18T10:04:23+00:00

Whats the best way to make the following HTML text block a hardcoded string

  • 0

Whats the best way to make the following HTML text block a hardcoded string object in c#? I need it for a test can’t use the @ operator since it just stops at the first “. Any ideas?

====================================================

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>

<HEAD>

  <META http-equiv="Content-Type" content="text/html; charset=utf-8">

  <TITLE>Example Web Page</TITLE>

</HEAD> 

<body>  

<p>You have reached this web page by typing &quot;example.com&quot;,

&quot;example.net&quot;,&quot;example.org&quot

  or &quot;example.edu&quot; into your web browser.</p>

<p>These domain names are reserved for use in documentation and are not available 

  for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC 

  2606</a>, Section 3.</p>

</BODY>

</HTML>
  • 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-05-18T10:04:23+00:00Added an answer on May 18, 2026 at 10:04 am

    You can use @ but you have to escape any ” as “” (double)

    There is no other way as far as I have found.

    First lines would then be

    @"<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">
    
    <HTML>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder what the best way to make an entire tr clickable would be?
What is the best way to make a Delphi application (Delphi 2007 for Win32)
What is the best way to make a <div> fade away after a given
What is the best way to make trailing slashes not matter in the latest
What is the best way to make one of the branches of a subversion
Something i've never really done before, but what is the best way to make
Speaking entirely in technology-free terms, what is the best way to make a mobile
What's the best way (if any) to make an image appear grayed out with
What's the best way (if any) to make the inside box transparent so the
Whats the best way to detect collisions in a 2d game sprites? I am

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.