#467 cat editor
This commit is contained in:
parent
def19f06b4
commit
287213fef8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user