diff --git a/RMuseum/Utils/GanjoorPoemTools.cs b/RMuseum/Utils/GanjoorPoemTools.cs index b89282da..a1f5bd9b 100644 --- a/RMuseum/Utils/GanjoorPoemTools.cs +++ b/RMuseum/Utils/GanjoorPoemTools.cs @@ -47,14 +47,7 @@ namespace RMuseum.Utils string textWithoutTags = Regex.Replace(input, "<.*?>", string.Empty); // Decode HTML entities (e.g., & → &) - textWithoutTags = HttpUtility.HtmlDecode(textWithoutTags); - - //it seems some codes are not correctly converted: - textWithoutTags = textWithoutTags.Replace("‌", "‌"); - textWithoutTags = textWithoutTags.Replace("«", "»"); - textWithoutTags = textWithoutTags.Replace("»", "«"); - - return textWithoutTags; + return HttpUtility.HtmlDecode(textWithoutTags); } } }