METADATA 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. Metadata-Version: 2.1
  2. Name: bleach
  3. Version: 3.1.5
  4. Summary: An easy safelist-based HTML-sanitizing tool.
  5. Home-page: https://github.com/mozilla/bleach
  6. Maintainer: Will Kahn-Greene
  7. Maintainer-email: willkg@mozilla.com
  8. License: Apache Software License
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Web Environment
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: Apache Software License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 2
  17. Classifier: Programming Language :: Python :: 2.7
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Programming Language :: Python :: 3.5
  20. Classifier: Programming Language :: Python :: 3.6
  21. Classifier: Programming Language :: Python :: 3.7
  22. Classifier: Programming Language :: Python :: 3.8
  23. Classifier: Programming Language :: Python :: Implementation :: CPython
  24. Classifier: Programming Language :: Python :: Implementation :: PyPy
  25. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  26. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
  27. Requires-Dist: packaging
  28. Requires-Dist: six (>=1.9.0)
  29. Requires-Dist: webencodings
  30. ======
  31. Bleach
  32. ======
  33. .. image:: https://travis-ci.org/mozilla/bleach.svg?branch=master
  34. :target: https://travis-ci.org/mozilla/bleach
  35. .. image:: https://badge.fury.io/py/bleach.svg
  36. :target: http://badge.fury.io/py/bleach
  37. Bleach is an allowed-list-based HTML sanitizing library that escapes or strips
  38. markup and attributes.
  39. Bleach can also linkify text safely, applying filters that Django's ``urlize``
  40. filter cannot, and optionally setting ``rel`` attributes, even on links already
  41. in the text.
  42. Bleach is intended for sanitizing text from *untrusted* sources. If you find
  43. yourself jumping through hoops to allow your site administrators to do lots of
  44. things, you're probably outside the use cases. Either trust those users, or
  45. don't.
  46. Because it relies on html5lib_, Bleach is as good as modern browsers at dealing
  47. with weird, quirky HTML fragments. And *any* of Bleach's methods will fix
  48. unbalanced or mis-nested tags.
  49. The version on GitHub_ is the most up-to-date and contains the latest bug
  50. fixes. You can find full documentation on `ReadTheDocs`_.
  51. :Code: https://github.com/mozilla/bleach
  52. :Documentation: https://bleach.readthedocs.io/
  53. :Issue tracker: https://github.com/mozilla/bleach/issues
  54. :License: Apache License v2; see LICENSE file
  55. Reporting Bugs
  56. ==============
  57. For regular bugs, please report them `in our issue tracker
  58. <https://github.com/mozilla/bleach/issues>`_.
  59. If you believe that you've found a security vulnerability, please `file a secure
  60. bug report in our bug tracker
  61. <https://bugzilla.mozilla.org/enter_bug.cgi?assigned_to=nobody%40mozilla.org&product=Webtools&component=Bleach-security&groups=webtools-security>`_
  62. or send an email to *security AT mozilla DOT org*.
  63. For more information on security-related bug disclosure and the PGP key to use
  64. for sending encrypted mail or to verify responses received from that address,
  65. please read our wiki page at
  66. `<https://www.mozilla.org/en-US/security/#For_Developers>`_.
  67. Security
  68. ========
  69. Bleach is a security-focused library.
  70. We have a responsible security vulnerability reporting process. Please use
  71. that if you're reporting a security issue.
  72. Security issues are fixed in private. After we land such a fix, we'll do a
  73. release.
  74. For every release, we mark security issues we've fixed in the ``CHANGES`` in
  75. the **Security issues** section. We include any relevant CVE links.
  76. Installing Bleach
  77. =================
  78. Bleach is available on PyPI_, so you can install it with ``pip``::
  79. $ pip install bleach
  80. Upgrading Bleach
  81. ================
  82. .. warning::
  83. Before doing any upgrades, read through `Bleach Changes
  84. <https://bleach.readthedocs.io/en/latest/changes.html>`_ for backwards
  85. incompatible changes, newer versions, etc.
  86. Basic use
  87. =========
  88. The simplest way to use Bleach is:
  89. .. code-block:: python
  90. >>> import bleach
  91. >>> bleach.clean('an <script>evil()</script> example')
  92. u'an &lt;script&gt;evil()&lt;/script&gt; example'
  93. >>> bleach.linkify('an http://example.com url')
  94. u'an <a href="http://example.com" rel="nofollow">http://example.com</a> url'
  95. Code of Conduct
  96. ===============
  97. This project and repository is governed by Mozilla's code of conduct and
  98. etiquette guidelines. For more details please see the `CODE_OF_CONDUCT.md
  99. </CODE_OF_CONDUCT.md>`_
  100. .. _html5lib: https://github.com/html5lib/html5lib-python
  101. .. _GitHub: https://github.com/mozilla/bleach
  102. .. _ReadTheDocs: https://bleach.readthedocs.io/
  103. .. _PyPI: https://pypi.org/project/bleach/
  104. Bleach changes
  105. ==============
  106. Version 3.1.5 (April 29th, 2020)
  107. --------------------------------
  108. **Security fixes**
  109. None
  110. **Features**
  111. None
  112. **Bug fixes**
  113. * replace missing ``setuptools`` dependency with ``packaging``. Thank you Benjamin Peterson.
  114. Version 3.1.4 (March 24th, 2020)
  115. --------------------------------
  116. **Security fixes**
  117. * ``bleach.clean`` behavior parsing style attributes could result in a
  118. regular expression denial of service (ReDoS).
  119. Calls to ``bleach.clean`` with an allowed tag with an allowed
  120. ``style`` attribute were vulnerable to ReDoS. For example,
  121. ``bleach.clean(..., attributes={'a': ['style']})``.
  122. This issue was confirmed in Bleach versions v3.1.3, v3.1.2, v3.1.1,
  123. v3.1.0, v3.0.0, v2.1.4, and v2.1.3. Earlier versions used a similar
  124. regular expression and should be considered vulnerable too.
  125. Anyone using Bleach <=v3.1.3 is encouraged to upgrade.
  126. https://bugzilla.mozilla.org/show_bug.cgi?id=1623633
  127. **Backwards incompatible changes**
  128. * Style attributes with dashes, or single or double quoted values are
  129. cleaned instead of passed through.
  130. **Features**
  131. None
  132. **Bug fixes**
  133. None
  134. Version 3.1.3 (March 17th, 2020)
  135. --------------------------------
  136. **Security fixes**
  137. None
  138. **Backwards incompatible changes**
  139. None
  140. **Features**
  141. * Add relative link to code of conduct. (#442)
  142. * Drop deprecated 'setup.py test' support. (#507)
  143. * Fix typo: curren -> current in tests/test_clean.py (#504)
  144. * Test on PyPy 7
  145. * Drop test support for end of life Python 3.4
  146. **Bug fixes**
  147. None
  148. Version 3.1.2 (March 11th, 2020)
  149. --------------------------------
  150. **Security fixes**
  151. * ``bleach.clean`` behavior parsing embedded MathML and SVG content
  152. with RCDATA tags did not match browser behavior and could result in
  153. a mutation XSS.
  154. Calls to ``bleach.clean`` with ``strip=False`` and ``math`` or
  155. ``svg`` tags and one or more of the RCDATA tags ``script``,
  156. ``noscript``, ``style``, ``noframes``, ``iframe``, ``noembed``, or
  157. ``xmp`` in the allowed tags whitelist were vulnerable to a mutation
  158. XSS.
  159. This security issue was confirmed in Bleach version v3.1.1. Earlier
  160. versions are likely affected too.
  161. Anyone using Bleach <=v3.1.1 is encouraged to upgrade.
  162. https://bugzilla.mozilla.org/show_bug.cgi?id=1621692
  163. **Backwards incompatible changes**
  164. None
  165. **Features**
  166. None
  167. **Bug fixes**
  168. None
  169. Version 3.1.1 (February 13th, 2020)
  170. -----------------------------------
  171. **Security fixes**
  172. * ``bleach.clean`` behavior parsing ``noscript`` tags did not match
  173. browser behavior.
  174. Calls to ``bleach.clean`` allowing ``noscript`` and one or more of
  175. the raw text tags (``title``, ``textarea``, ``script``, ``style``,
  176. ``noembed``, ``noframes``, ``iframe``, and ``xmp``) were vulnerable
  177. to a mutation XSS.
  178. This security issue was confirmed in Bleach versions v2.1.4, v3.0.2,
  179. and v3.1.0. Earlier versions are probably affected too.
  180. Anyone using Bleach <=v3.1.0 is highly encouraged to upgrade.
  181. https://bugzilla.mozilla.org/show_bug.cgi?id=1615315
  182. **Backwards incompatible changes**
  183. None
  184. **Features**
  185. None
  186. **Bug fixes**
  187. None
  188. Bleach changes
  189. ==============
  190. Version 3.1.0 (January 9th, 2019)
  191. ---------------------------------
  192. **Security fixes**
  193. None
  194. **Backwards incompatible changes**
  195. None
  196. **Features**
  197. * Add ``recognized_tags`` argument to the linkify ``Linker`` class. This
  198. fixes issues when linkifying on its own and having some tags get escaped.
  199. It defaults to a list of HTML5 tags. Thank you, Chad Birch! (#409)
  200. **Bug fixes**
  201. * Add ``six>=1.9`` to requirements. Thank you, Dave Shawley (#416)
  202. * Fix cases where attribute names could have invalid characters in them.
  203. (#419)
  204. * Fix problems with ``LinkifyFilter`` not being able to match links
  205. across ``&amp;``. (#422)
  206. * Fix ``InputStreamWithMemory`` when the ``BleachHTMLParser`` is
  207. parsing ``meta`` tags. (#431)
  208. * Fix doctests. (#357)
  209. Version 3.0.2 (October 11th, 2018)
  210. ----------------------------------
  211. **Security fixes**
  212. None
  213. **Backwards incompatible changes**
  214. None
  215. **Features**
  216. None
  217. **Bug fixes**
  218. * Merge ``Characters`` tokens after sanitizing them. This fixes issues in the
  219. ``LinkifyFilter`` where it was only linkifying parts of urls. (#374)
  220. Version 3.0.1 (October 9th, 2018)
  221. ---------------------------------
  222. **Security fixes**
  223. None
  224. **Backwards incompatible changes**
  225. None
  226. **Features**
  227. * Support Python 3.7. It supported Python 3.7 just fine, but we added 3.7 to
  228. the list of Python environments we test so this is now officially supported.
  229. (#377)
  230. **Bug fixes**
  231. * Fix ``list`` object has no attribute ``lower`` in ``clean``. (#398)
  232. * Fix ``abbr`` getting escaped in ``linkify``. (#400)
  233. Version 3.0.0 (October 3rd, 2018)
  234. ---------------------------------
  235. **Security fixes**
  236. None
  237. **Backwards incompatible changes**
  238. * A bunch of functions were moved from one module to another.
  239. These were moved from ``bleach.sanitizer`` to ``bleach.html5lib_shim``:
  240. * ``convert_entity``
  241. * ``convert_entities``
  242. * ``match_entity``
  243. * ``next_possible_entity``
  244. * ``BleachHTMLSerializer``
  245. * ``BleachHTMLTokenizer``
  246. * ``BleachHTMLParser``
  247. These functions and classes weren't documented and aren't part of the
  248. public API, but people read code and might be using them so we're
  249. considering it an incompatible API change.
  250. If you're using them, you'll need to update your code.
  251. **Features**
  252. * Bleach no longer depends on html5lib. html5lib==1.0.1 is now vendored into
  253. Bleach. You can remove it from your requirements file if none of your other
  254. requirements require html5lib.
  255. This means Bleach will now work fine with other libraries that depend on
  256. html5lib regardless of what version of html5lib they require. (#386)
  257. **Bug fixes**
  258. * Fixed tags getting added when using clean or linkify. This was a
  259. long-standing regression from the Bleach 2.0 rewrite. (#280, #392)
  260. * Fixed ``<isindex>`` getting replaced with a string. Now it gets escaped or
  261. stripped depending on whether it's in the allowed tags or not. (#279)
  262. Version 2.1.4 (August 16th, 2018)
  263. ---------------------------------
  264. **Security fixes**
  265. None
  266. **Backwards incompatible changes**
  267. * Dropped support for Python 3.3. (#328)
  268. **Features**
  269. None
  270. **Bug fixes**
  271. * Handle ambiguous ampersands in correctly. (#359)
  272. Version 2.1.3 (March 5th, 2018)
  273. -------------------------------
  274. **Security fixes**
  275. * Attributes that have URI values weren't properly sanitized if the
  276. values contained character entities. Using character entities, it
  277. was possible to construct a URI value with a scheme that was not
  278. allowed that would slide through unsanitized.
  279. This security issue was introduced in Bleach 2.1. Anyone using
  280. Bleach 2.1 is highly encouraged to upgrade.
  281. https://bugzilla.mozilla.org/show_bug.cgi?id=1442745
  282. **Backwards incompatible changes**
  283. None
  284. **Features**
  285. None
  286. **Bug fixes**
  287. * Fixed some other edge cases for attribute URI value sanitizing and
  288. improved testing of this code.
  289. Version 2.1.2 (December 7th, 2017)
  290. ----------------------------------
  291. **Security fixes**
  292. None
  293. **Backwards incompatible changes**
  294. None
  295. **Features**
  296. None
  297. **Bug fixes**
  298. * Support html5lib-python 1.0.1. (#337)
  299. * Add deprecation warning for supporting html5lib-python < 1.0.
  300. * Switch to semver.
  301. Version 2.1.1 (October 2nd, 2017)
  302. ---------------------------------
  303. **Security fixes**
  304. None
  305. **Backwards incompatible changes**
  306. None
  307. **Features**
  308. None
  309. **Bug fixes**
  310. * Fix ``setup.py`` opening files when ``LANG=``. (#324)
  311. Version 2.1 (September 28th, 2017)
  312. ----------------------------------
  313. **Security fixes**
  314. * Convert control characters (backspace particularly) to "?" preventing
  315. malicious copy-and-paste situations. (#298)
  316. See `<https://github.com/mozilla/bleach/issues/298>`_ for more details.
  317. This affects all previous versions of Bleach. Check the comments on that
  318. issue for ways to alleviate the issue if you can't upgrade to Bleach 2.1.
  319. **Backwards incompatible changes**
  320. * Redid versioning. ``bleach.VERSION`` is no longer available. Use the string
  321. version at ``bleach.__version__`` and parse it with
  322. ``pkg_resources.parse_version``. (#307)
  323. * clean, linkify: linkify and clean should only accept text types; thank you,
  324. Janusz! (#292)
  325. * clean, linkify: accept only unicode or utf-8-encoded str (#176)
  326. **Features**
  327. **Bug fixes**
  328. * ``bleach.clean()`` no longer unescapes entities including ones that are missing
  329. a ``;`` at the end which can happen in urls and other places. (#143)
  330. * linkify: fix http links inside of mailto links; thank you, sedrubal! (#300)
  331. * clarify security policy in docs (#303)
  332. * fix dependency specification for html5lib 1.0b8, 1.0b9, and 1.0b10; thank you,
  333. Zoltán! (#268)
  334. * add Bleach vs. html5lib comparison to README; thank you, Stu Cox! (#278)
  335. * fix KeyError exceptions on tags without href attr; thank you, Alex Defsen!
  336. (#273)
  337. * add test website and scripts to test ``bleach.clean()`` output in browser;
  338. thank you, Greg Guthe!
  339. Version 2.0 (March 8th, 2017)
  340. -----------------------------
  341. **Security fixes**
  342. * None
  343. **Backwards incompatible changes**
  344. * Removed support for Python 2.6. #206
  345. * Removed support for Python 3.2. #224
  346. * Bleach no longer supports html5lib < 0.99999999 (8 9s).
  347. This version is a rewrite to use the new sanitizing API since the old
  348. one was dropped in html5lib 0.99999999 (8 9s).
  349. If you're using 0.9999999 (7 9s) upgrade to 0.99999999 (8 9s) or higher.
  350. If you're using 1.0b8 (equivalent to 0.9999999 (7 9s)), upgrade to 1.0b9
  351. (equivalent to 0.99999999 (8 9s)) or higher.
  352. * ``bleach.clean`` and friends were rewritten
  353. ``clean`` was reimplemented as an html5lib filter and happens at a different
  354. step in the HTML parsing -> traversing -> serializing process. Because of
  355. that, there are some differences in clean's output as compared with previous
  356. versions.
  357. Amongst other things, this version will add end tags even if the tag in
  358. question is to be escaped.
  359. * ``bleach.clean`` and friends attribute callables now take three arguments:
  360. tag, attribute name and attribute value. Previously they only took attribute
  361. name and attribute value.
  362. All attribute callables will need to be updated.
  363. * ``bleach.linkify`` was rewritten
  364. ``linkify`` was reimplemented as an html5lib Filter. As such, it no longer
  365. accepts a ``tokenizer`` argument.
  366. The callback functions for adjusting link attributes now takes a namespaced
  367. attribute.
  368. Previously you'd do something like this::
  369. def check_protocol(attrs, is_new):
  370. if not attrs.get('href', '').startswith('http:', 'https:')):
  371. return None
  372. return attrs
  373. Now it's more like this::
  374. def check_protocol(attrs, is_new):
  375. if not attrs.get((None, u'href'), u'').startswith(('http:', 'https:')):
  376. # ^^^^^^^^^^^^^^^
  377. return None
  378. return attrs
  379. Further, you need to make sure you're always using unicode values. If you
  380. don't then html5lib will raise an assertion error that the value is not
  381. unicode.
  382. All linkify filters will need to be updated.
  383. * ``bleach.linkify`` and friends had a ``skip_pre`` argument--that's been
  384. replaced with a more general ``skip_tags`` argument.
  385. Before, you might do::
  386. bleach.linkify(some_text, skip_pre=True)
  387. The equivalent with Bleach 2.0 is::
  388. bleach.linkify(some_text, skip_tags=['pre'])
  389. You can skip other tags, too, like ``style`` or ``script`` or other places
  390. where you don't want linkification happening.
  391. All uses of linkify that use ``skip_pre`` will need to be updated.
  392. **Changes**
  393. * Supports Python 3.6.
  394. * Supports html5lib >= 0.99999999 (8 9s).
  395. * There's a ``bleach.sanitizer.Cleaner`` class that you can instantiate with your
  396. favorite clean settings for easy reuse.
  397. * There's a ``bleach.linkifier.Linker`` class that you can instantiate with your
  398. favorite linkify settings for easy reuse.
  399. * There's a ``bleach.linkifier.LinkifyFilter`` which is an htm5lib filter that
  400. you can pass as a filter to ``bleach.sanitizer.Cleaner`` allowing you to clean
  401. and linkify in one pass.
  402. * ``bleach.clean`` and friends can now take a callable as an attributes arg value.
  403. * Tons of bug fixes.
  404. * Cleaned up tests.
  405. * Documentation fixes.
  406. Version 1.5 (November 4th, 2016)
  407. --------------------------------
  408. **Security fixes**
  409. * None
  410. **Backwards incompatible changes**
  411. * clean: The list of ``ALLOWED_PROTOCOLS`` now defaults to http, https and
  412. mailto.
  413. Previously it was a long list of protocols something like ed2k, ftp, http,
  414. https, irc, mailto, news, gopher, nntp, telnet, webcal, xmpp, callto, feed,
  415. urn, aim, rsync, tag, ssh, sftp, rtsp, afs, data. #149
  416. **Changes**
  417. * clean: Added ``protocols`` to arguments list to let you override the list of
  418. allowed protocols. Thank you, Andreas Malecki! #149
  419. * linkify: Fix a bug involving periods at the end of an email address. Thank you,
  420. Lorenz Schori! #219
  421. * linkify: Fix linkification of non-ascii ports. Thank you Alexandre, Macabies!
  422. #207
  423. * linkify: Fix linkify inappropriately removing node tails when dropping nodes.
  424. #132
  425. * Fixed a test that failed periodically. #161
  426. * Switched from nose to py.test. #204
  427. * Add test matrix for all supported Python and html5lib versions. #230
  428. * Limit to html5lib ``>=0.999,!=0.9999,!=0.99999,<0.99999999`` because 0.9999
  429. and 0.99999 are busted.
  430. * Add support for ``python setup.py test``. #97
  431. Version 1.4.3 (May 23rd, 2016)
  432. ------------------------------
  433. **Security fixes**
  434. * None
  435. **Changes**
  436. * Limit to html5lib ``>=0.999,<0.99999999`` because of impending change to
  437. sanitizer api. #195
  438. Version 1.4.2 (September 11, 2015)
  439. ----------------------------------
  440. **Changes**
  441. * linkify: Fix hang in linkify with ``parse_email=True``. #124
  442. * linkify: Fix crash in linkify when removing a link that is a first-child. #136
  443. * Updated TLDs.
  444. * linkify: Don't remove exterior brackets when linkifying. #146
  445. Version 1.4.1 (December 15, 2014)
  446. ---------------------------------
  447. **Changes**
  448. * Consistent order of attributes in output.
  449. * Python 3.4 support.
  450. Version 1.4 (January 12, 2014)
  451. ------------------------------
  452. **Changes**
  453. * linkify: Update linkify to use etree type Treewalker instead of simpletree.
  454. * Updated html5lib to version ``>=0.999``.
  455. * Update all code to be compatible with Python 3 and 2 using six.
  456. * Switch to Apache License.
  457. Version 1.3
  458. -----------
  459. * Used by Python 3-only fork.
  460. Version 1.2.2 (May 18, 2013)
  461. ----------------------------
  462. * Pin html5lib to version 0.95 for now due to major API break.
  463. Version 1.2.1 (February 19, 2013)
  464. ---------------------------------
  465. * ``clean()`` no longer considers ``feed:`` an acceptable protocol due to
  466. inconsistencies in browser behavior.
  467. Version 1.2 (January 28, 2013)
  468. ------------------------------
  469. * ``linkify()`` has changed considerably. Many keyword arguments have been
  470. replaced with a single callbacks list. Please see the documentation for more
  471. information.
  472. * Bleach will no longer consider unacceptable protocols when linkifying.
  473. * ``linkify()`` now takes a tokenizer argument that allows it to skip
  474. sanitization.
  475. * ``delinkify()`` is gone.
  476. * Removed exception handling from ``_render``. ``clean()`` and ``linkify()`` may
  477. now throw.
  478. * ``linkify()`` correctly ignores case for protocols and domain names.
  479. * ``linkify()`` correctly handles markup within an <a> tag.
  480. Version 1.1.5
  481. -------------
  482. Version 1.1.4
  483. -------------
  484. Version 1.1.3 (July 10, 2012)
  485. -----------------------------
  486. * Fix parsing bare URLs when parse_email=True.
  487. Version 1.1.2 (June 1, 2012)
  488. ----------------------------
  489. * Fix hang in style attribute sanitizer. (#61)
  490. * Allow ``/`` in style attribute values.
  491. Version 1.1.1 (February 17, 2012)
  492. ---------------------------------
  493. * Fix tokenizer for html5lib 0.9.5.
  494. Version 1.1.0 (October 24, 2011)
  495. --------------------------------
  496. * ``linkify()`` now understands port numbers. (#38)
  497. * Documented character encoding behavior. (#41)
  498. * Add an optional target argument to ``linkify()``.
  499. * Add ``delinkify()`` method. (#45)
  500. * Support subdomain whitelist for ``delinkify()``. (#47, #48)
  501. Version 1.0.4 (September 2, 2011)
  502. ---------------------------------
  503. * Switch to SemVer git tags.
  504. * Make ``linkify()`` smarter about trailing punctuation. (#30)
  505. * Pass ``exc_info`` to logger during rendering issues.
  506. * Add wildcard key for attributes. (#19)
  507. * Make ``linkify()`` use the ``HTMLSanitizer`` tokenizer. (#36)
  508. * Fix URLs wrapped in parentheses. (#23)
  509. * Make ``linkify()`` UTF-8 safe. (#33)
  510. Version 1.0.3 (June 14, 2011)
  511. -----------------------------
  512. * ``linkify()`` works with 3rd level domains. (#24)
  513. * ``clean()`` supports vendor prefixes in style values. (#31, #32)
  514. * Fix ``linkify()`` email escaping.
  515. Version 1.0.2 (June 6, 2011)
  516. ----------------------------
  517. * ``linkify()`` supports email addresses.
  518. * ``clean()`` supports callables in attributes filter.
  519. Version 1.0.1 (April 12, 2011)
  520. ------------------------------
  521. * ``linkify()`` doesn't drop trailing slashes. (#21)
  522. * ``linkify()`` won't linkify 'libgl.so.1'. (#22)