API: Remove XML tag highlighting from non-XML formats
authorKevin Israel <pleasestand@live.com>
Fri, 16 May 2014 16:49:36 +0000 (12:49 -0400)
committerKrinkle <krinklemail@gmail.com>
Tue, 23 Sep 2014 19:44:31 +0000 (19:44 +0000)
commit33339c68eb03ced47eff33b9f6678a92e5931c95
tree4251fa594566222a922c9eda4b21c7574df85e61
parent6d3bf1a81d7316f78118c16c1f8b41582c0a0ce9
API: Remove XML tag highlighting from non-XML formats

Since 926afc65c316, the transformation assumes < and > occur in pairs.
This assumption is invalid for formats such as JSON.

Implementing proper JSON syntax highlighting falls outside the scope
of this workaround and is left for separate changes, likely including
the addition of a hook. That is part of the API roadmap RfC.

https://www.mediawiki.org/wiki/Requests_for_comment/API_roadmap#Changes_to_pretty-printed_HTML_formats

Bug: 65403
Change-Id: Iff8d444c82f7efd2bd1c9f703defc4f0984e8211
RELEASE-NOTES-1.25
includes/api/ApiFormatBase.php