  ###################
  
  
  def addslashes(value):
      "Adds slashes - useful for passing strings to JavaScript, for example."
      return value.replace('\\', '\\\\').replace('"', '\\"').replace("'", "\\'")
  addslashes = stringfilter(addslashes)
  
  def capfirst(value):
      "Capitalizes the first character of the value"
 
</s> remove     "Capitalizes the first character of the value"
 </s> add     """Capitalizes the first character of the value.""" </s> remove     "Adds the arg to the value"
 </s> add     """Adds the arg to the value.""" </s> remove     "Returns the length of the value - useful for lists"
 </s> add     """Returns the length of the value - useful for lists.""" </s> remove     "Returns a boolean of whether the value's length is the argument"
 </s> add     """Returns a boolean of whether the value's length is the argument.""" </s> remove     "Returns the first item in a list"
 </s> add     """Returns the first item in a list."""
    """Adds slashes - useful for passing strings to JavaScript, for example."""
  ###################
  
  
  def addslashes(value):
    """Adds slashes - useful for passing strings to JavaScript, for example."""
      return value.replace('\\', '\\\\').replace('"', '\\"').replace("'", "\\'")
  addslashes = stringfilter(addslashes)
  
  def capfirst(value):
      "Capitalizes the first character of the value"
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaultfilters.py