Changes between Version 15 and Version 16 of TracDev/PortingFromGenshiToJinja
- Timestamp:
- Feb 26, 2016, 12:52:29 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PortingFromGenshiToJinja
v15 v16 704 704 from trac.util.html import escape 705 705 }}} 706 Note that in a similar way to `Markup`, `escape` now also comes from `markupsafe` .706 Note 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. 707 707 708 708 [[comment(//Sending notification e-mails//)]]