diff --git a/projects/ngx-i18nsupport-lib/src/impl/xml-serializer.ts b/projects/ngx-i18nsupport-lib/src/impl/xml-serializer.ts index 6fca705e..22a02b59 100644 --- a/projects/ngx-i18nsupport-lib/src/impl/xml-serializer.ts +++ b/projects/ngx-i18nsupport-lib/src/impl/xml-serializer.ts @@ -161,11 +161,11 @@ export class XmlSerializer { return; case node.ATTRIBUTE_NODE: const attrNode = node; - return buf.push(' ', attrNode.name, '="', attrNode.value.replace(/[<&"]/g, this._xmlEncoder), '"'); + return buf.push(' ', attrNode.name, '="', attrNode.value.replace(/[<>&"]/g, this._xmlEncoder), '"'); case node.TEXT_NODE: const textNode = node; if (!options.beautify || partOfMixedContent || !this.containsOnlyWhiteSpace(textNode.data)) { - return buf.push(textNode.data.replace(/[<&]/g, this._xmlEncoder)); + return buf.push(textNode.data.replace(/[<>&]/g, this._xmlEncoder)); } return; case node.CDATA_SECTION_NODE: