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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:05:38+00:00 2026-05-10T18:05:38+00:00

How would you store formatted blocks of text (line breaks, tabs, lists – etc.)

  • 0

How would you store formatted blocks of text (line breaks, tabs, lists – etc.) in a database (nothing specific) to be displayed on the web (XHTML) while maintaining a level of abstraction so that the data can be used in other applications or if the structure of the website were to change in the future?

  • 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. 2026-05-10T18:05:38+00:00Added an answer on May 10, 2026 at 6:05 pm

    There are two ideas that clash slightly in your question – that of keeping the data separate to the content so it can be re purposed, and that of including formatting data.

    Is the formatting data part of the data, or just meta data?

    Haven’t we seen this before; it basically seems to be a CSS / HTML conundrum.

    If these blocks of text fit into a known data scheme (as Mario’s answer assumes) then yeah, I’d go with his answer, but re-reading your questions I’ll answer (and assume) you have bits of formatting within, say, the paragraph tag that Mario used?

    Going with the idea the formatting is basically part of the data, not just an added extra, I’d suggest adopting something like the CSS / HTML solution. Store the text with standard XHTML tags, ready for your CSS. This could then be parsed when you want to use a standard UI (as in non web app?), and just strip the tags and replace as necessary.

    Of course, you could make up your own markup ([myBitOfText #] instead of < span class=’myBitOfText />) but you may as well have one return from your database that requires no re-purposing or string manipulation.

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

Sidebar

Related Questions

I would like to be able to store reusable html-formatted text in Sitecore and
I am building an application which would store some information into the database and
What would be the best data type in data dictionary to store formatted texts?
How would you store a vector of N dimensions in a datatable in C#?
How would you store a PDF document in a field in MySQL? Currently I
How would I store the result of a select statement so I can reuse
How would I store results from dataset in an Ilist? Model read = new
I have a certificate .p12 and .crt and I would like store the public
I would like to store log4net config data in my application.config file. Based on
I would like to store large dataset generated in Python in a Django model.

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.