3

While writing an Android App that shows questions from the SE network, I've noticed that the SE REST API returns invalid HTML characters; after a bit more of researching I've found it's not the API itself but the entire network sending invalid HTML to browsers.

I'm not the most HTML expert 'round here, so maybe I'm totally wrong. Right now I think I've found these:

(I've posted this here because Android internal browser component do not intercepts those two cases, so it's currently just a problem in my App)

1 Answer 1

3
  1. If the code tags are <pre>s, then \n is fine. Pre means "preformatted;" it makes the browser ignore the usual rules and preserve whitespace, etc.
  2. Repeat after me: "There is no such thing as a special character." Html is perfectly happy to receive UTF-8.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .