HF RL Explorer

Task: Parse HTML Fragments Without Automatic Wrapper Tags

Task: Parse HTML Fragments Without Automatic Wrapper Tags: a task in Terminal-Lego-15k (Harbor dataset). When using BeautifulSoup with the html5lib parser, it automatically wraps the input content with <html , <head , and <body tags, even for simple HTML fragments. For example:

The task

When using BeautifulSoup with the `html5lib` parser, it automatically wraps the input content with `<html>`, `<head>`, and `<body>` tags, even for simple HTML fragments. For example:

Part of PrimeIntellect/Terminal-Lego-15k.