diff --git a/subs2srs.lua b/subs2srs.lua index 53b4c11..88199bb 100644 --- a/subs2srs.lua +++ b/subs2srs.lua @@ -648,7 +648,7 @@ local function init_platform_windows() end self.copy_to_clipboard = function(text) - text = text:gsub("&", "^^^&") + text = text:gsub("&", "^^^&"):gsub("[<>]", "") mp.commandv("run", "cmd.exe", "/d", "/c", string.format("@echo off & chcp 65001 & echo %s|clip", text)) end