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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:51:37+00:00 2026-05-26T09:51:37+00:00

I have a website that allows a user to save text content and then

  • 0

I have a website that allows a user to save text content and then display it as is.
The user can use HTML tags to create his data the way he wants – design, fonts, divs, tables and so on…

To display the data been saved I direct the user to a page with a header/footer of my own and he’s data in the middle. The problem happens when the user has some invalid HTML tags or un-closed ones, then it interfere with my own header/footer HTML and the whole page gets messed up.

Is there a way to encapsulate the user’s data so it would not harm the page?

  • 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-26T09:51:37+00:00Added an answer on May 26, 2026 at 9:51 am

    The Iframe suggestion are good but was not enough. Because i wanted it to show like it was a part of the page and I didn’t know what is the length and size of the user data, the solution i’ve used is like that:

    Created a page that shows the user data alone. Opened it in an iframe which was located between my main page header and footer.
    Now for the trick – for when the user has a lot of data, to avoid scroll bars in the middle of the page i have used this script on the iframe onload event:

      function setHeight()
      {
      //get page height
      var the_height=
      document.getElementById('userFrame').contentWindow.document.body.scrollHeight;
    
      //set iframe height
      document.getElementById('userFrame').height=the_height;
      }
    

    This way, when the page loads, the iframe height will change according to it’s size, pushing the footer to the bottom.
    After that just needed to set the iframe border to “none” and the page looks normal.

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

Sidebar

Related Questions

I am creating a service that allows my website visitors to create content (text)
I have a website that allows a user to create blog posts. There are
I have a website that allows a user to upload a spreadsheet of items
I have an asp.net website that allows the user to download largish files -
I have a website that allows searches for lists of content in various ways,
I have a requirement to setup a website that allows users, user blogs, a
As a project I would like to create a website that allows a user
I have a website that allows a functionality for any user but each user
I have a website that allows to enter HTML through a TinyMCE rich editor
I have a group feature on my website that allows 1 user to put

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.