junmer / html2js

simple html2js processer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 to false

πŸ˜„ I more meant when you did a release but awesome thank you! Keep up the good work @junmer

@nwhite89 thanks for your support πŸ˜ƒ