fix: HtmlUtils 特殊字符改用 Unicode 转义避免编译错误
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,13 +33,13 @@ public class HtmlUtils {
|
|||||||
text = text.replaceAll(""", "\"");
|
text = text.replaceAll(""", "\"");
|
||||||
text = text.replaceAll("'", "'");
|
text = text.replaceAll("'", "'");
|
||||||
text = text.replaceAll("'", "'");
|
text = text.replaceAll("'", "'");
|
||||||
text = text.replaceAll("—", "—");
|
text = text.replaceAll("—", "\u2014");
|
||||||
text = text.replaceAll("–", "–");
|
text = text.replaceAll("–", "\u2013");
|
||||||
text = text.replaceAll("…", "…");
|
text = text.replaceAll("…", "\u2026");
|
||||||
text = text.replaceAll("“", """);
|
text = text.replaceAll("“", "\u201C");
|
||||||
text = text.replaceAll("”", """);
|
text = text.replaceAll("”", "\u201D");
|
||||||
text = text.replaceAll("‘", "'");
|
text = text.replaceAll("‘", "\u2018");
|
||||||
text = text.replaceAll("’", "'");
|
text = text.replaceAll("’", "\u2019");
|
||||||
text = text.replaceAll("\\r\\n", "\n");
|
text = text.replaceAll("\\r\\n", "\n");
|
||||||
text = text.replaceAll("\\r", "\n");
|
text = text.replaceAll("\\r", "\n");
|
||||||
text = text.replaceAll("\\n\\n+", "\n\n");
|
text = text.replaceAll("\\n\\n+", "\n\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user