Don't break autolinks by stripping the final semicolon from an entity.
authorC. Scott Ananian <cscott@cscott.net>
Thu, 11 Dec 2014 20:15:28 +0000 (15:15 -0500)
committerC. Scott Ananian <cscott@cscott.net>
Thu, 18 Dec 2014 22:27:55 +0000 (17:27 -0500)
commitb975a0bfe07d5f9d9e0ff6bd5b6f70e6cc4fe678
tree165c7808a29907eaa98ee53a21f7c44fad879ee1
parent470538a41a652056a31828e62c80f58e5b77e4fb
Don't break autolinks by stripping the final semicolon from an entity.

Autolinking free external links is clever about making sure that trailing
punctuation isn't included in the link.  But if an HTML entity happens to
terminate the URL, the semicolon from the entity is stripped from the url,
breaking it.

Fix this corner case.  This also unifies autolink parsing with Parsoid.

See: I5ae8435322c78dd1df170d7a3543fff3642759b1
Change-Id: I5482782c25e12283030b0fd2150ac55092f7979b
includes/parser/Parser.php
tests/parser/parserTests.txt