components/policy/tools/template_writers/writers/android_policy_writer.py
def _EscapeResource(resource):
  '''Escape the resource for usage in an Android resource XML file.
  This includes standard XML escaping as well as those specific to Android.
  '''
  if resource == None or type(resource) in (int, bool):
    return str(resource)
  return xml_escape.escape(
      resource,
      {
          # Written order is matter to prevent "'" becomes "\\\\'" instead of
          # "\\'".
          "\\": "\\\\",
          "'": "\\'",
          '"': '\\"',
      })
Escape the resource for usage in an Android resource XML file.
  This includes standard XML escaping as well as those specific to Android.
  
Escape the resource for usage in an Android resource XML file.
This includes standard XML escaping as well as those specific to Android.
Escape the resource for usage in an Android resource XML file . This includes standard XML escaping as well as those specific to Android .
def _EscapeResource(resource):
  if resource == None or type(resource) in (int, bool):
    return str(resource)
  return xml_escape.escape(
      resource,
      {
          "\\": "\\\\",
          "'": "\\'",
          '"': '\\"',
      })
def _EscapeResource ( resource ) : if resource == None or type ( resource ) in ( int , bool ) : return str ( resource ) return xml_escape . escape ( resource , { "\\" : "\\\\" , "'" : "\\'" , '"' : '\\"' , } )
Escape the resource for usage in an Android resource XML file.
Escape the resource for usage in an Android resource XML file .
'''Escape the resource for usage in an Android resource XML file.
  This includes standard XML escaping as well as those specific to Android.
  ''' # Written order is matter to prevent "'" becomes "\\\\'" instead of # "\\'".
resource