What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-25 05:20:02
javascript escape html
function escapeHtml(str) { return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;"); } Add solution -
Javascript 2022-02-25 02:00:20
how to add carousel in javascript
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * {box-sizing: border-box} body {font-family: Verdana, sans-serif; margin:0} .mySlides {display: n... Add solution -
Shell/Bash 2022-02-22 11:20:01
windows server 2016 powershell override password complexity
secedit /export /cfg c:\secpol.cfg (gc C:\secpol.cfg).replace("PasswordComplexity = 1", "PasswordComplexity = 0") | Out-File C:\secpol.cfg secedit /configure /db c:\windows\security\local.sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY rm... Add solution -
Python 2022-02-21 20:20:02
how to replace the last character of a string in python
sample_string = "712345677890 173445667" # if i wanted to do: new_string=sample_string.replace("7", r) print new_string #you won't get your results #Output: r123456rr890 1r344566r #but i wanted it to be 712345677890 17344566r #there ar... Add solution
Best helpers
Ranking is empty