Created
December 12, 2017 01:18
-
-
Save felixbuenemann/2b3c1a683b334022c626917b0abb2adc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compiler = require('vue-template-compiler') | |
template = "<div id=\"foo,\nbar\">\n<textarea id=\"foo,\nbar\">foo\nbar</textarea>\n</div>" | |
result = compiler.ssrCompile(template) | |
console.log(result.render) | |
// output: with(this){return _c('div',{attrs:{"id":"foo,\nbar"}},[_ssrNode("<textarea id=\"foo,\\nbar\">foo\nbar</textarea>")])} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment