whole_func_string: function sanitize(str) {
    const symbolMap = {
      '\'': '\\textquotesingle{}',
      '"': '\\textquotedbl{}',
      '`': '\\textasciigrave{}',
      '^': '\\textasciicircum{}',
      '~': '\\textasciitilde{}',
      '<': '\\textless{}',
      '>': '\\textgreater{}',
      '|': '\\textbar{}',
      '\\': '\\textbackslash{}',
      '{': '\\{',
      '}': '\\}',
      '$': '\\$',
      '&': '\\&',
      '#': '\\#',
      '_': '\\_',
      '%': '\\%'
    }
  
    return Array.from(str)
      .map(char => symbolMap[char] || char)
      .join('')
  }
func_code_string: function sanitize(str) {
    const symbolMap = {
      '\'': '\\textquotesingle{}',
      '"': '\\textquotedbl{}',
      '`': '\\textasciigrave{}',
      '^': '\\textasciicircum{}',
      '~': '\\textasciitilde{}',
      '<': '\\textless{}',
      '>': '\\textgreater{}',
      '|': '\\textbar{}',
      '\\': '\\textbackslash{}',
      '{': '\\{',
      '}': '\\}',
      '$': '\\$',
      '&': '\\&',
      '#': '\\#',
      '_': '\\_',
      '%': '\\%'
    }
  
    return Array.from(str)
      .map(char => symbolMap[char] || char)
      .join('')
  }
func_documentation_string: Sanitizes a string by replacing all hazardous LaTeX symbols with their descriptive names.
  
  @param str {string} - The string to be normalized.
  
  @return {string}