json - Formatted Text via webservice -


i have webservice, returns json-objects. json objects (among other properties) contain text. text has formatted display in clients browser. server holds database texts stored in it. planning have 50.000 texts stored , thousand requests day.

i wondering, how should handle formatting. should store texts html , send html inside json objects. in personal opinion approach contradicts idea of json webservice, used not have send html every time...

as formatting limited basic stuff (strong, emphazised , maybe 3 or 4 more) should mark them in way , formatting clientside (like on stackoverflow *foo* becomes foo.

are there other ways didn't thought of? advantages , disadvantegs of approaches?

to clarifiy: storing texts in database , sending them via json-webservice unalterable decisions

are there existing libraries handle clientside formatting performant?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -