diff --git a/GDZZ.Application/Mapper/Mapper.cs b/GDZZ.Application/Mapper/Mapper.cs index 4fd6dce..f235cc0 100644 --- a/GDZZ.Application/Mapper/Mapper.cs +++ b/GDZZ.Application/Mapper/Mapper.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; namespace GDZZ.Application.Mapper @@ -13,6 +14,7 @@ namespace GDZZ.Application.Mapper public void Register(TypeAdapterConfig config) { config.ForType() + .Map(d => d.Content, s => s.Type != "text" ?s.Content: Regex.Unescape(s.Content)) .Map(d => d.ToContactId, s => s.CreatedUserId); config.ForType()