Commits

Mike Orr  committed 1d9bc0b

Reimplement ``highlight()`` using the HTML builder.

  • Participants
  • Parent commits 2711440

Comments (0)

Files changed (2)

     algorithm in ``webhelpers.media``. It also logs the dimensions to the
     debug log for troubleshooting.
 * webhelpers.html.tools:
+  - Reimplement ``highlight()`` using the HTML builder. New arguments add
+    flexibility.  Deprecate the ``highlighter`` argument, which creates tags
+    via string interpolation.
   - Fix HTML overescaping and underescaping in auto_link().  Patch by Marius
-    Gedminas.
+    Gedminas.  A parsing bug remains: 
+    http://pylonshq.com/project/pylonshq/ticket/657
 * webhelpers.media:
   - Bugfix in ``get_dimensions_pil``.
 * webhelpers.paginate:

File webhelpers/html/tools.py

     """
     if not phrase or not text:
         return text
+    text = escape(text)
     if case_sensitive:
         flags = 0   # No flags.
     else: