Mike Orr committed 1d9bc0b

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

Comments (0)

Files changed (2)

     algorithm in ````. It also logs the dimensions to the
     debug log for troubleshooting.
+  - 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: 
   - Bugfix in ``get_dimensions_pil``.
 * webhelpers.paginate:


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