durian-hypermediaStyle

All fixtures · Hostile input (each one attack) · hostile/01-raw-html-script.dh.md

Source
---
title: Raw HTML block with a script
expect: no <script> element; the HTML shows as text
---

<script>window.__pwned = 1; alert(1)</script>

<div onclick="alert(1)">a div with a handler</div>

<iframe src="https://example.com"></iframe>

<style>body { display: none }</style>
LLM view
---
title: Raw HTML block with a script
source: hostile/01-raw-html-script.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

<script>window.__pwned = 1; alert(1)</script>

<div onclick="alert(1)">a div with a handler</div>

<iframe src="https://example.com"></iframe>

<style>body { display: none }</style>
<script>window.__pwned = 1; alert(1)</script>

<div onclick="alert(1)">a div with a handler</div>

<iframe src="https://example.com"></iframe>

<style>body { display: none }</style>