paularmstrong/swig — pull request #504 by paularmstrong (2014-07-30 04:39:14+00:00)
Title: Make function output from locals autoescaped, keep macros safe

Continuing work from @andrewrk from gh-494

Slightly alternative approach, albeit, potentially crazy... Uses a `String` object to mark the actual string itself as `safe`. When the `escape` filter hits a `String` object, it checks if the input is `safe`. If it is, just returns the string value and continues on.