code: def shellfilter(value):
      
      replacements = {'\\': '\\\\',
                      '`': '\\`',
                      "'": "\\'",
                      '"': '\\"'}
      for search, repl in replacements.items():
          value = value.replace(search, repl)
      return safestring.mark_safe(value)
docs: Replace HTML chars for shell usage.