nipoppy.utils.html

Utilities for processing HTML strings.

Classes

SelectiveHTMLStripper

HTML parser that strips specified tags and keeps others.

Module Contents

nipoppy.utils.html.strip_html_tags(html, tags=None)

Strip specified HTML tags from a string.

Parameters:
  • html (str)

  • tags (Optional[Iterable])

nipoppy.utils.html.COMMON_HTML_TAGS