We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.1
https://vue-hn.now.sh/top
open in IE9 browser
it('basic-rendering-entities-encoding', function(done){ var renderer = require('vue-server-renderer').createRenderer() var Vue = require('vue') var app = new Vue({ template: '<div id="app">汉字 {{chineseDataMsg}} {{testEntity}}</div>', data: function(){ return { chineseDataMsg: '测试', testEntity: '<script>alert(1);</script>' } } }) renderer.renderToString(app, function(err, html){ try{ html.should.equal('<div id="app" server-rendered="true">汉字 测试 <script>alert(1);</script></div>') } catch(e){ done(e) return } done() }) })
some entities codes can not be rendered by IE9, the page contains some entities codes like :

 Built with Vue.js

The text was updated successfully, but these errors were encountered:
I changed some codes as following and it works in IE9.
// write(node.raw ? node.text : entities.encodeHTML(String(node.text)), next) write(node.raw ? node.text : require('html-entities').AllHtmlEntities.encode(String(node.text)), next)
Are there some problems if we only encodes HTML Entities ( not encode chinese and some special characters ) ?
Sorry, something went wrong.
d362d64
No branches or pull requests
Vue.js version
2.0.1
Reproduction Link
https://vue-hn.now.sh/top
Steps to reproduce
open in IE9 browser
What is Expected?
What is actually happening?
some entities codes can not be rendered by IE9, the page contains some entities codes like :
The text was updated successfully, but these errors were encountered: