Skip to content

Commit 2d6c9b6

Browse files
committed
fix(codegen): call decodeHTML in AwsProtocolUtils
1 parent b9dc88d commit 2d6c9b6

File tree

1 file changed

+1
-1
lines changed
  • codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen

1 file changed

+1
-1
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static void generateXmlParseBody(GenerationContext context) {
131131
writer.openBlock("if (encoded.length) {", "}", () -> {
132132
writer.write("const parsedObj = xmlParse(encoded, { attributeNamePrefix: '', "
133133
+ "ignoreAttributes: false, parseNodeValue: false, trimValues: false, "
134-
+ "tagValueProcessor: (val, tagName) => val.trim() === '' ? '': heDecode(val) });");
134+
+ "tagValueProcessor: (val, tagName) => val.trim() === '' ? '': decodeHTML(val) });");
135135
writer.write("const textNodeName = '#text';");
136136
writer.write("const key = Object.keys(parsedObj)[0];");
137137
writer.write("const parsedObjToReturn = parsedObj[key];");

0 commit comments

Comments
 (0)