Y
Hacker News
new
|
ask
|
show
|
jobs
by
JeremyBanks
2657 days ago
Even if you don't parse it yourself, XMLs data model is usually more of a chore to consume.
1 comments
tannhaeuser
2657 days ago
XML/SGML is highly appropriate for representing rich text, though, which is the purpose of chat apps/logs. Using JSON you'd have to invent ad-hoc markup on top of JSON, loosing any advantage it may have.
link
JeremyBanks
2657 days ago
Nobody uses rich text formatting, and even if they did, the message body is only a small fraction of the total protocol content.
link
Boulth
2657 days ago
> Using JSON you'd have to invent ad-hoc markup on top of JSON
That's basically a description of ActivityPub that wraps HTML in JSON!
link
hedora
2657 days ago
Will activitypub let me do:
<body> markdown text </body>
And ship some js to convert to html?
link
Boulth
2657 days ago
No, each server has their own rules what and how will they present content. Usually they accept limited subset of HTML and filter out everything else.
link