On 24 August 2010 10:43, lampak <llampak(a)gmail.com> wrote:
How can I generate in JavaScript such a link which
would be identical to
the one generated by MediaWiki? Has somebody written such a function? Or
at least, do you know where it is done in MediaWiki php code?
See Parser.php, function guessSectionNameFromWikiText; most of the
work is done in Sanitizer::escapeId.
-- [[cs:User:Mormegil | Petr Kadlec]]