Fix embedding weirdness.

master
Nick Sergeant 2012-05-07 15:27:22 -04:00
parent eb3e50e9f6
commit 70a0e0a3bf
1 changed files with 1 additions and 4 deletions

View File

@ -80,10 +80,7 @@ class Snipt(models.Model):
"""))
embedded = (embedded.replace("\\\"","\\\\\"")
.replace('\'','\\\'')
.replace('\\n','\\\\n')
.replace("\\x", "\\\\x")
.replace('\\'', '\\\\'')
.replace('\\s', '\\\\s')
.replace("\\", "\\\\")
.replace('background: #202020', ''))
self.embedded = embedded