Script tags
nwhite89 opened this issue Β· comments
Hey
I'm running into an issue using html2js
when dealing with <script>
tags with JS (so you can write them out the end tag needs to be amended like:
html2Js(body, {
mode: 'default',
wrap: false
})
.replace(/<\/script/g, '<\/\'+\'script');
What do you feel about automatically dealing with script tags? or at least passing something to set that you want this done?
@nwhite89 good case, i have added this feature use your idea, thanks
awesome thanks @junmer π any chance to get a heads up when this is implemented? then I can delete some code :) cheers
I add option ignoreScriptTag
defaults to false
, so, you can rm your code direct. π
ignoreScriptTag
: boolean to ignore fix split the script tag when writing it with document write. Defaults tofalse
π I more meant when you did a release but awesome thank you! Keep up the good work @junmer
@nwhite89 thanks for your support π