Dobrý den, snažím se nahradit určitý text, aby se "" a můj kód nefunguje. Jen nevím, proč je můj kód nefunguje
b = 'Just testing.<script>window.location.replace("http://google.com");</script>'
print(b)
b = b:gsub('<script>window.location.replace("http://google.com");</script>', "")
print(b)
1: Jen testování.okna.umístění.replace("http://google.com");
2: Jen testování.okna.umístění.replace("http://google.com");
Snažil jsem se b = string.gsub(b,'<script>window.location.replace("http://google.com");</script>',"")
taky ale nefungovalo to buď
Já jsem pracoval v FiveM