HTML TEXT Parser

This is the opening paragraph with bold text, italic text, underlined text, and bold italic together. It also has a plain link, a link that opens in a new tab, and an affiliate link with query params that must survive untouched.
Heading Two: Main Section
A normal paragraph under an H2. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Heading Three: Sub Section
Paragraph under an H3. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Heading Four: Small Section
Paragraph under an H4.
Lists
- Bullet item one with bold
- Bullet item two with a link inside
- Bullet item three
- Numbered step one
- Numbered step two
- Numbered step three
Blockquote
Success in e-commerce comes from testing fast and cutting losers early. This is a quote block.
Image (plain)

Image wrapped in an affiliate link

Table with affiliate links
YouTube embed
Custom styled layouts (should become sanitized HTML blocks)
Hostile content (everything in this section must be stripped or neutralised)
If the sanitizer works, you should see only this paragraph and safe text below, with no alerts, no popups, and no dead links to javascript.

javascript link, must not be clickable as script
Paragraph with an onclick handler, handler must be removed.
Closing
That is the end of the test post. If everything above rendered correctly, headings, lists, quote, tables, images, video, styled blocks, and affiliate links all made it through, and the hostile section did not.