Last modified: 2014-06-20 16:45:20 UTC
action=mobileview does not return HTML in its 'line' property, seems to be stripping out <a> tags
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1972
Yuvi your statement is not quite true. Line does contain HTML it just seems that links are currently getting removed. Ideally there should be a line and lineText property - MobileFrontend already has a need for unformatted headings (table of contents as an example). The lineText property should contain the heading without any HTML markup. See: http://en.m.wikipedia.beta.wmflabs.org/w/api.php?action=mobileview&format=json&page=Mobile+view+headings+test&variant=en&redirect=yes&prop=id%7Csections%7Ctext%7Clastmodified%7Clastmodifiedby%7Clanguagecount%7Chasvariants%7Cprotection%7Cdisplaytitle%7Crevision&noheadings=yes§ionprop=level%7Cline%7Canchor§ions=all Gives: {"mobileview":{"lastmodified":"2014-04-28T20:06:58Z","lastmodifiedby":{"name":"Jdlrobson","gender":"unknown"},"revision":91131,"id":20687,"languagecount":0,"displaytitle":"Mobile view headings test","protection":[],"sections":[{"id":0,"text":"<p></p>"},{"level":"2","line":"Test 1","anchor":"Test_1","id":1,"text":"<p>Test!!</p>"},{"level":"2","line":"<i>Test 2</i>","anchor":"Test_2","id":2,"text":"<p>Test</p>"},{"level":"2","line":"<b>Test 3</b>","anchor":"Test_3","id":3,"text":"<p>Test</p>"},{"level":"2","line":"Test 4","anchor":"Test_4","id":4,"text":"<p>Test</p>"},{"level":"2","line":"","anchor":"","id":5,"text":"<p>!</p>"}]}}
Talked with Max. The way to fix this is to not use "line": as html but to treat it as text. The Heading HTML is included with the body text but we right now suppress it with noheadings=. We should stop suppressing and oppressing and depressing them and just restyle them to look like how we want them to. They are in proper HTML. This is a bug in the app so closing here.
*** Bug 66878 has been marked as a duplicate of this bug. ***