google/playground-elements

It appears only the first </script> (closing script) tag is unescaped in html files using playground-ide

jvoccia opened this issue · 1 comments

When I have a sandbox with code like the following:
https://codesandbox.io/s/naughty-kalam-i5e6h?file=/src/index.js

<playground-ide editable-file-system line-numbers resizable>
  <script type="sample/html" filename="index.html"><!doctype html>
  <html>
      <head>
          <script src="script1.js">&lt;/script>
          <script src="script2.js">&lt;/script>
      </head>
      <body>
          <script src="./script3.js">&lt;/script>
      </body>
  </html></script>
  </playground-ide>

The resulting HTML in the IDE looks like:

<!doctype html>
  <html>
      <head>
          <script src="script1.js"></script>
          <script src="script2.js">&lt;/script>
      </head>
      <body>
          <script src="./script3.js">&lt;/script>
      </body>
  </html>

Only the first script tag is "unescaped" the rest remain with </script>

Thank you for this report! Should be fixed by #260