From 6afc69bb3a4da1be50e593d254463b52a417ad15 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Tue, 12 Mar 2024 01:34:20 +0900 Subject: [PATCH] fixed url handling --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index d36a47f..fe7e10b 100644 --- a/main.js +++ b/main.js @@ -114,7 +114,8 @@ async function postToBluesky(text, images) { } function removeHtmlTags(input) { - return input.replace(/<[^>]*>/g, ""); + let res = input.replace("
", " "); + return res.replace(/<[^>]*>/g, ""); } function convertQuote(input) { return input.replace(/"/g, '"');