mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Do replacement on exit so that all nodes are walked
This commit is contained in:
parent
a76fa41321
commit
4c6d4d0661
@ -2,7 +2,7 @@ var compiler = require('../');
|
||||
|
||||
function removeEscapeFunctions(node) {
|
||||
var walker = compiler.createWalker({
|
||||
enter: function(node, parent) {
|
||||
exit: function(node, parent) {
|
||||
if (node.type === 'FunctionCall' &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
(node.callee.name === '$noEscapeXml' || node.callee.name === '$escapeXml')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user