summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-06 17:16:23 +0300
committerThanos Apollo <[email protected]>2023-07-06 17:16:23 +0300
commit37c61f5b6b6c7ed459e649bb53ffcad94b10e298 (patch)
tree0b5e6f207d48407e3533922f225abcb98d4245a0
parent8bac67ebd2c532577ffd13c188c4af407f912799 (diff)
(fix) yeetube-fix-title: adjust for "&"
-rw-r--r--yeetube.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/yeetube.el b/yeetube.el
index e885cdf..4a5c413 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -150,8 +150,9 @@ It's recommended you keep it as the default value."
;; this is a quick "duck-tape" fix.
(defun yeetube-fix-title (title)
"Adjust TITLE."
- (replace-regexp-in-string "&#39;" "'"
- (replace-regexp-in-string "&quot;" "\"" title)))
+ (replace-regexp-in-string "&amp;" "&"
+ (replace-regexp-in-string "&quot;" "\""
+ (replace-regexp-in-string "&#39;" "'" title))))
(defun yeetube-insert-content (prefix url video-titles video-ids)
"Insert video links with titles into the buffer.