We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,430 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Storing formatted text, not in HTML?!

Simple issue...

If my website is storing text in a database (MySQL) - and will ordinarily be outputted in good ol' HTML... but possibly via XML, or JSON... how do I store the text, allowing for eg. paragraph breaks, but not using HTML to format it??

lworks

2
Contributors
1
Reply
2 Days
Discussion Span
2 Years Ago
Last Updated
2
Views
lifeworks
Junior Poster
146 posts since Nov 2007
Reputation Points: 15
Solved Threads: 2
Skill Endorsements: 0

Well, since nobody else has replied, I'll just throw this out there. You can use a custom markup language, that can then be easily translated to whichever language necessary. BBcode is an example of a markup language that gets translated into HTML. Make a set of tags for each format option you need.

Lsmjudoka
Junior Poster in Training
76 posts since Apr 2009
Reputation Points: 10
Solved Threads: 9
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0556 seconds using 2.65MB