mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove Handlebars._escape & heuristic.
It made strings like "Escape < as <" unrenderable.
This commit is contained in:
@@ -70,10 +70,7 @@ Handlebars._escape = (function() {
|
||||
};
|
||||
|
||||
return function (x) {
|
||||
// If Handlebars sees an &entity; in the input text, it won't quote
|
||||
// it (won't replace it with &entity;). I'm not sure if that's
|
||||
// the right choice -- it's definitely a heuristic..
|
||||
return x.replace(/&(?!\w+;)|[<>"'`]/g, escape_one);
|
||||
return x.replace(/[&<>"'`]/g, escape_one);
|
||||
};
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user