From d5ae80158f404998a75dfbaf793c44e3de6f1e90 Mon Sep 17 00:00:00 2001 From: youngniw <1999julie@naver.com> Date: Mon, 16 May 2022 20:56:10 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=84=B8=EB=B6=80=20=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=20=EC=95=9E=EB=92=A4=20=EA=B3=B5=EB=B0=B1=20=EB=B0=8F=20?= =?UTF-8?q?=EC=A4=84=EB=B0=94=EA=BF=88=20=EC=A0=9C=EA=B1=B0=20(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/nadoyagsa/pillaroid/component/JsoupComponent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nadoyagsa/pillaroid/component/JsoupComponent.java b/src/main/java/com/nadoyagsa/pillaroid/component/JsoupComponent.java index 8b68686..55cb7a5 100644 --- a/src/main/java/com/nadoyagsa/pillaroid/component/JsoupComponent.java +++ b/src/main/java/com/nadoyagsa/pillaroid/component/JsoupComponent.java @@ -54,9 +54,10 @@ public Medicine getMedicineInfo(Document document) { // 지식백과에서의 if (textElement != null) { String text = textElement.html() - .replace("
", "\n") // 줄바꿈 모두 저장 + .replace("
", "\n") // 줄바꿈 모두 저장 .replaceAll("\\[허가사항변경[^]]*]\n*", "") // [허가사항변경] 관련 불필요 내용 제거 - .replaceAll("<[^>]*>", ""); // 태그 모두 제거 + .replaceAll("<[^>]*>", "") // 태그 모두 제거 + .strip(); switch (topic) { case "외형정보":