Don't html-escape in the plugin registrant templates. (#43448)

* Don't html-escape in the plugin registrant templates.

Fixes #43382

* Add test
This commit is contained in:
Harry Terkelsen
2019-10-25 15:00:05 -07:00
committed by GitHub
parent ddfb53c440
commit eba69caf97
2 changed files with 55 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ import 'project.dart';
void _renderTemplateToFile(String template, dynamic context, String filePath) {
final String renderedTemplate =
mustache.Template(template).renderString(context);
mustache.Template(template, htmlEscapeValues: false).renderString(context);
final File file = fs.file(filePath);
file.createSync(recursive: true);
file.writeAsStringSync(renderedTemplate);