Twitter Search API: Is Tweet text supposed to contain XML or HTML?

My application is successfully consuming JSON from the Twitter search API. However, I'm confused as to how I should process the content. Each Tweet JSON object has a "text" property, so I'd assumed that it should be treated as such. However, I'm seeing a lot of ", &amp, and other nonsense in the content.

Is the Twitter API just bad and is erroneously encoding text content as through it's XML, or are consumers of the Twitter API supposed to somehow process the Tweet text as something other than plain text? I realize there's a markup convention, such as @username indicating communication with other Twitter users and http:// indicating a link. Are we also supposed to expect XML or HTML entites? Obviously, I don't want to just blindly insert the Tweet text as HTML.


the text field returns text not html neither xml, but in the text it uses the special html characters for things like " tjat are quotation marks (cause it can not include them in the json without making a mess) it also adds special characters which are from foreign languages like "2011\u5e746\u6708\u767a\u", so don't be suprissed to find this things. Just get to know the most common marquers so you can replace them when you want to do something with the text.

Need Your Help

rails routes with :id not working

ruby-on-rails routes ruby-on-rails-4 rails-routing activeresource

I have a model called Schedule that belongs_to a project. A project has_one schedule. I am trying to follow CRUD conventions but having some difficult. I have a page that lists all the projects ...

Run functions on elements with a certain class as soon as the DOM is loaded, not using an event handler

javascript jquery dom document-ready

I have a simple function which I want to run on all elements with a certain class. I want this function to be run as soon as the DOM is loaded; not upon an event handler.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.