Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-alpha-4, 2.5.6
-
None
Description
When MarkupTemplateEngine is used with 'useDoubleQuotes' config enabled, incorrect output is produced.
Given this example code:
import groovy.text.markup.* def out = new MarkupTemplateEngine(new TemplateConfiguration(useDoubleQuotes: true)) .createTemplate('''tag(attr: 'contains " quote')''') .make() println out
Result is:
<tag attr="contains "e; quote"/>
But expected result is:
<tag attr="contains " quote"/>
The wrong XML entity is used - "e is not valid.