https://bugzilla.wikimedia.org/show_bug.cgi?id=64467

--- Comment #3 from Jon <[email protected]> ---
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&sectionprop=level%7Cline%7Canchor&sections=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>"}]}}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to