diff --git a/src/helma/util/HtmlEncoder.java b/src/helma/util/HtmlEncoder.java index 14916d41..bc278e9b 100644 --- a/src/helma/util/HtmlEncoder.java +++ b/src/helma/util/HtmlEncoder.java @@ -363,11 +363,14 @@ public final class HtmlEncoder { if (i < l-2) { if (!insideMacroTag && '%' == str.charAt(i+1)) { // this is the beginning of a Helma macro tag - insideMacroTag = insideTag = true; - macroQuoteChar = '\u0000'; + if (!insideCodeTag) { + insideMacroTag = insideTag = true; + macroQuoteChar = '\u0000'; + } } else if ('!' == str.charAt(i+1) && '-' == str.charAt(i+2)) { // the beginning of an HTML comment? - insideComment = insideTag = (i