Sign in to follow this  
NebojsaVeron

Storing and displaying decorated text on multiple platforms

Recommended Posts

I'm building an application which will be available on several platforms (web, iphone, android...). They all display data from the same database.

What's the best way of storing some decorated text in the database to easily display it on all platforms? By saying decorated text, I mean on decorations like bold, italic, underline...

One option might be writing a BB code parser for each platform and storing a BB Code decorated text in database, but it doesn't sound like the best solution to me.

Any opinions? :)

Share this post


Link to post
Share on other sites
[quote name='nveron' timestamp='1312801301' post='4846126']
I'm building an application which will be available on several platforms (web, iphone, android...). They all display data from the same database.

What's the best way of storing some decorated text in the database to easily display it on all platforms? By saying decorated text, I mean on decorations like bold, italic, underline...

One option might be writing a BB code parser for each platform and storing a BB Code decorated text in database, but it doesn't sound like the best solution to me.

Any opinions? :)


[/quote]

Since web is involved aswell you could just store it as html, all platforms should have a html render engine you can use.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this