Node version(node -v): v8.9.4
Hexo and Plugin version(npm ls --depth 0):
[email protected] /home/yushijinhun/repos/hexo-test
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
I initialized a fresh Hexo site with hexo init. Then I created a JavaScript file source/js/test.js, whose content is:
console.log("<test string>");
Then I executed hexo generate. I expect the rendered JS file to be same as the source. However, the content of the rendered file public/js/test.js is:
console.log("<test string="">");
</test>
Also, I did some research about this and found that, if I directly call hexo render source/js/test.js, the output is the same as expected.
Successfully reproduced.

May the problem be caused by filtering HTML tags on JavaScript files?
use skip_render if you simply want to copy files from source to destination, see #1633.
Why the output of hexo generate is different from that of hexo render? Shouldn't they be the same?
@yushijinhun this is a know issue which we haven't figure out the fix yet.
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
use
skip_renderif you simply want to copy files from source to destination, see #1633.