parameters: (elem, is_comment, branding_replacements_only)
docstring: Replaces a node and attributes to Brave wording
docstring_summary: Replaces a node and attributes to Brave wording
docstring_tokens: Replaces a node and attributes to Brave wording
function: def generate_braveified_node(elem, is_comment, branding_replacements_only):
      """Replaces a node and attributes to Brave wording"""
      if elem.text:
          elem.text = braveify_grd_text(
              elem.text, not is_comment, branding_replacements_only)
  
      if elem.tail:
          elem.tail = braveify_grd_text(
              elem.tail, not is_comment, branding_replacements_only)
  
      if 'desc' in elem.keys():
          elem.attrib['desc'] = braveify_grd_text(
              elem.attrib['desc'], False, branding_replacements_only)
      for child in elem:
          generate_braveified_node(child, is_comment, branding_replacements_only)
function_tokens: def generate_braveified_node ( elem , is_comment , branding_replacements_only ) : if elem . text : elem . text = braveify_grd_text ( elem . text , not is_comment , branding_replacements_only ) if elem . tail : elem . tail = braveify_grd_text ( elem . tail , not is_comment , branding_replacements_only ) if 'desc' in elem . keys ( ) : elem . attrib [ 'desc' ] = braveify_grd_text ( elem . attrib [ 'desc' ] , False , branding_replacements_only ) for child in elem : generate_braveified_node ( child , is_comment , branding_replacements_only )