|
|
|
|
@ -253,9 +253,9 @@ function stringify_tag_attributes(attributes) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const regex_style_tags =
|
|
|
|
|
/<!--[^]*?-->|<style((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s])|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g;
|
|
|
|
|
/<!--[^]*?-->|<style((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g;
|
|
|
|
|
const regex_script_tags =
|
|
|
|
|
/<!--[^]*?-->|<script((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s])|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;
|
|
|
|
|
/<!--[^]*?-->|<script((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Calculate the updates required to process all instances of the specified tag.
|
|
|
|
|
|