parameters: (text)
return_statement: return text
docstring: Parse placeholders in |text|, making it more human-readable. The format of
    |text| is exactly the same as in captions in policy_templates.json: it can
    contain XML tags (ph, ex) and $1-like substitutions. Note that this function
    does only a very simple parsing that is not fully correct, but should be
    enough for all practical situations.
  
    Args:
      text: A string containing placeholders.
  
    Returns:
      |text| with placeholders removed or replaced by readable text.
docstring_summary: Parse placeholders in |text|, making it more human-readable. The format of
    |text| is exactly the same as in captions in policy_templates.json: it can
    contain XML tags (ph, ex) and $1-like substitutions. Note that this function
    does only a very simple parsing that is not fully correct, but should be
    enough for all practical situations.
docstring_tokens: Parse placeholders in |text| making it more human - readable . The format of |text| is exactly the same as in captions in policy_templates . json : it can contain XML tags ( ph ex ) and $1 - like substitutions . Note that this function does only a very simple parsing that is not fully correct but should be enough for all practical situations .
function: def ParsePlaceholders(text):
    """Parse placeholders in |text|, making it more human-readable. The format of
    |text| is exactly the same as in captions in policy_templates.json: it can
    contain XML tags (ph, ex) and $1-like substitutions. Note that this function
    does only a very simple parsing that is not fully correct, but should be
    enough for all practical situations.
  
    Args:
      text: A string containing placeholders.
  
    Returns:
      |text| with placeholders removed or replaced by readable text.
    """
    text = re.sub(r'\$\d+', '', text)    # Remove $1-like substitutions.
    text = re.sub(r'<[^>]+>', '', text)  # Remove XML tags.
    return text
function_tokens: def ParsePlaceholders ( text ) : text = re . sub ( r'\$\d+' , '' , text ) # Remove $1-like substitutions. text = re . sub ( r'<[^>]+>' , '' , text ) # Remove XML tags. return text