Link parser fixes

[#9536] Trailing dot(s) after link will be set after anchor tag

[#9399] Links with url parameters especially with ampersands work now