icelam / html-inline-script-webpack-plugin

A webpack plugin for converting external script files to inline script block. Requires 'html-webpack-plugin' to work.
https://www.npmjs.com/package/html-inline-script-webpack-plugin
MIT License
55 stars 10 forks source link

feat: escape all </script> that appears inside source #388

Closed icelam closed 2 years ago

icelam commented 2 years ago

Description

Fixing issue #387 where any "" string that appears inside source breaks webpage if not escaped.

How has this been tested?

  1. Created a minimum webpack config and sources which contains more than 1 "" string, located at __tests__/cases/escape-script-end-tag a. this is tested by running webpack in Jest b. Open the build files produced after running webpack in browser, check and make sure there is no script error

Types of changes

Remarks

N/A