class_docstr: Search index is a collection of pages and sections (heading
  tags and their following content are sections).
docstr: A simple wrapper to add an entry, dropping bad characters.
docstr_tok: ["A","simple","wrapper","to","add","an","entry",",","dropping","bad","characters","."]
code: def _add_entry(self, title: str | None, text: str, loc: str) -> None:
      """A simple wrapper to add an entry, dropping bad characters."""
      text = text.replace("\u00a0", " ")
      text = re.sub(r"[ \t\n\r\f\v]+", " ", text.strip())
  
      self._entries.append(
          {"title": title, "text": text, "location": loc}
      )
  
imports: from __future__ import annotations
  import json
  import logging
  import os
  import re
  import subprocess
  from html.parser import HTMLParser
  from typing import TYPE_CHECKING
label_desc: Use image node_id 3 for calling the SearchIndex obj's underlying member method code with example usage: obj._add_entry(title, text, loc) without return types