Clarify that ParserOutput::getDisplayTitle() returns HTML.
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 16 Oct 2015 18:03:33 +0000 (20:03 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 16 Oct 2015 18:03:33 +0000 (20:03 +0200)
commitd0343297648456277cc3b8136e2658177bb9cc27
treeadbd8fe0c94bad3c1cdcd2752cb7e7f2cf6f5811
parent8d9e4770480816f761611357988b951173b4ef28
Clarify that ParserOutput::getDisplayTitle() returns HTML.

This change only improves documentation, it does not touch code.

For reference:
* CoreParserFunctions::displaytitle generates HTML, with &, < and so on
property escaped. OutputPage::setPageTitle() treats the input as wikitext,
which works for both plain text and HTML.

* Wikibase calls ParserOutput::setDisplayTitle() with HTML including <span>
structures.

In the API action=query&prop=pageprops returns HTML. There doesn't seem to
be a good place to document that fact, though.

Change-Id: I043b26b82f066abe2830a81d3bc073543b3748d8
includes/EditPage.php
includes/parser/ParserOutput.php