Edgewall Software

Changes between Version 15 and Version 16 of TracDev/PortingFromGenshiToJinja


Ignore:
Timestamp:
Feb 26, 2016, 12:52:29 AM (8 years ago)
Author:
Christian Boos
Comment:

be more specific about the difference with markupsafe.escape

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PortingFromGenshiToJinja

    v15 v16  
    704704from trac.util.html import escape
    705705}}}
    706 Note that in a similar way to `Markup`, `escape` now also comes from `markupsafe`.
     706Note that in a similar way to `Markup`, `escape` now also comes from `markupsafe`, with some slight adaptations, as `markupsafe.escape` always escapes the quotes, which is something we don't do by default. Hence always import `escape` from `trac.util.html`, never directly from `markupsafe` or Jinja2, unless you really know what you're doing.
    707707
    708708[[comment(//Sending notification e-mails//)]]