Skip to main content

HTML_SCRIPT_OPEN_PREFIX_BYTES

Constant HTML_SCRIPT_OPEN_PREFIX_BYTES 

Source
pub const HTML_SCRIPT_OPEN_PREFIX_BYTES: &[u8] = b"<script";
Expand description

ASCII byte slice for the opening <script tag without the trailing > or whitespace.

Used by the inline HTML minifier to detect the start of an inline-JS preserve region inside the HTML template.