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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:12:37+00:00 2026-06-03T00:12:37+00:00

The following works just fine: var sFirstText=<?php include(first2.html); ?>; when first2.html looks like this

  • 0

The following works just fine:

var sFirstText=<?php include("first2.html"); ?>;

when first2.html looks like this INCLUDING the double quotes:

"<p>sentence one</p><p>sentence two</p>"

However, if first2.html looks like:

"<p>sentence one</p>
<p>sentence two</p>"

I get an unterminated string literal message. I hope to figure out how I can include the html without first having to remove the carriage return/line feed sequences.

Also, if I remove the double quotes and do:

var sFirstText="<?php include("first2.html"); ?>";

that won’t work, returning a message I haven’t yet been able to comprehend.

Basically I want to get simple html formatting into a field without having to remove the cr/lf sequences.

  • 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-03T00:12:39+00:00Added an answer on June 3, 2026 at 12:12 am

    Try using a \ at the end of the line to continue the string to the next line.

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

Sidebar

Related Questions

I have the following code, WHICH WORKS JUST FINE...WORKS AS I WANT. But if
I have the following query. It works just fine but I need to pull
The following works fine from command line /usr/bin/mysqldump -uUser -pPass Db_name > /var/www/db_backup/db.`date +%Y%m%d%H%M`.sql
The following code works just fine in IE, FF, Chrome and Safari, but I
Why is Convert.ToDateTime behaving strangely for the following values? The following works just fine:
I am using the following which works great. I am just wondering if it
Following works fine in shell: >>> from django.contrib.auth.models import User >>> user=User.objects.get(pk=1) >>> user.first_name
The following works: public Date getDate() { return date; } and produces something like:
I am creating a datetime string that looks like this: 2010-07-15 11:54:21 And with
Try to make a timer like following way: HTML: <div id=timer> <span id=minute class=dis>00</span>

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.