About unexpected char sequences into binary data #2
Replies: 2 comments 1 reply
-
Actually, this is already implemented in SingleFile, here are the list of alternate tags which can be used when the binary data contains the closing tag: https://github.com/gildas-lormeau/single-file-core/blob/main/processors/compression/compression.js#L44-L49. You can see it in action in the presentation itself (https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG/raw/main/en-EN/dist/presentation-polyglot-png-zip-html_en-EN.html) which uses good old |
Beta Was this translation helpful? Give feedback.
-
Effectively, usable tags for RawText (and Script Data) are:
About plaintext, there is no end tag. It may be very interesting! About end tag rexexp, they should include Thank you for all your help :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Binary data are wrapped into
<!-- ... -->
comments.But data may contains a
-->
char sequence!Then we should reopen comment, but the parser doesn't allow that.
Instead of comment, we could wrap into script element,
Then handle closing with a custom
src
script.Note that we have to restore original
</script...>
when joining all script text contents.So in build process:
-->
, then use comment</script
, then use (no executable) script element</script...>
end tagBeta Was this translation helpful? Give feedback.
All reactions