comefrom: <doocs>1410.HTML Entity Parser_1.py
code: def entityParser( text: str) -> str:
      d = {
          '&quot;': '"',
          '&apos;': "'",
          '&amp;': "&",
          "&gt;": '>',
          "&lt;": '<',
          "&frasl;": '/',
      }
      i, n = 0, len(text)
      ans = []
      while i < n:
          for l in range(1, 8):
              j = i + l
              if text[i:j] in d:
                  ans.append(d[text[i:j]])
                  i = j
                  break
          else:
              ans.append(text[i])
              i += 1
      return ''.join(ans)
masked: def sample_funcname ( var_0 : str ) -> str :
      var_14 = { '&quot;' : '"' , '&apos;' : "'" , '&amp;' : "&" , "&gt;" : '>' , "&lt;" : '<' , "&frasl;" : '/' , }
      var_16 , var_18 = 0 , len ( var_0 )
      var_19 = [ ]
      while var_16 < var_18 :
          for var_23 in range ( 1 , 8 ) :
              j = var_16 + var_23
              if var_0 [ var_16 : j ] in var_14 :
                  var_19.append ( var_14 [ var_0 [ var_16 : j ] ] )
                  var_16 = j
                  break
          else :
              var_19.append ( var_0 [ var_16 ] )
              var_16 += 1
      return ''.join ( var_19 )
  