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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user