Files
oxc/apps/oxfmt/conformance/fixtures/edge-cases/html/nested-html-in-script.html
T
Yuji Sugiura 2e7a629be8 fix(oxfmt): format HTML in a <script> body as an embedded part (#28379)
```html
<script type="text/html">
  <div style="color:red;background:blue" onclick="foo( 1 )" class="  a   b  ">x</div>
</script>
```

will be formatted:

```html
<script type="text/html">
  <div style="color:red;background:blue" onclick="foo( 1 )" class="  a   b  ">
    x
  </div>
</script>
```

Note attributes are NOT.
2026-10-30 07:49:53 +00:00

4 lines
122 B
HTML

<script type="text/html">
<div style="color:red;background:blue" onclick="foo( 1 )" class=" a b ">x</div>
</script>