diff --git a/App_Code/Timbrado.vb b/App_Code/Timbrado.vb
index f48142f14..62fcbb5da 100644
--- a/App_Code/Timbrado.vb
+++ b/App_Code/Timbrado.vb
@@ -865,7 +865,7 @@ Public Class Timbrado
{UsuarioServicio}
{PassServicio}
{rfcEmisor}
- {arregloUUID}|{rfcReceptor}|{rfcEmisor}|{Total}|{MotivoCancelacion}|{FolioSustitucion}
+ {arregloUUID}|{rfcReceptor.ToEscapeXML()}|{rfcEmisor.ToEscapeXML()}|{Total}|{MotivoCancelacion}|{FolioSustitucion}
{certBase64}
{keyBase64}
{keyPass}
diff --git a/App_Code/modExtensiones.vb b/App_Code/modExtensiones.vb
index 9b8998052..fb6ddaac8 100644
--- a/App_Code/modExtensiones.vb
+++ b/App_Code/modExtensiones.vb
@@ -3960,6 +3960,19 @@ Namespace Extensiones
Return text
End Function
+
+
+
+ Function ToEscapeXML(ByVal str As String) As String
+ Dim text As String = ""
+
+ text = str.Replace("'", "'")
+ text = str.Replace("<", "<")
+ text = str.Replace(">", ">")
+ text = str.Replace("&", "&")
+
+ Return text
+ End Function
End Module
#End Region