marksweb / django-bleach

Bleach is a Python module that takes any HTML input, and returns valid, sanitised HTML that contains only an allowed subset of HTML tags, attributes and styles. django-bleach is a Django app that makes using bleach extremely easy.
MIT License
148 stars 23 forks source link

Update URLs to fix 404 #15

Closed PhysicistSouravDas closed 4 years ago

PhysicistSouravDas commented 4 years ago

It looks that in reStructuredText, titles cannot be given to hyperlinks, as opposed to that of markdown.

[Hyperlink](https://github.com "Title")

So, the title supplied in reST is appended at the end of the URL. .. _bleach: https://github.com/mozilla/bleach "Bleach" is rendering anchor tag as <a href="https://github.com/mozilla/bleach&quot;Bleach&quot;">Bleach</a> , whereas the desired one is <a href="https://github.com/mozilla/bleach" title="Bleach">Bleach</a>.

Simply put, clicking the link is taking the user to https://github.com/mozilla/bleach"Bleach" instead of https://github.com/mozilla/bleach, returning a 404 status code. All such links have been modified.