when using type= "text/babel" data-presets= "latest"
and th:inline= "javascript"
, thymeleaf will not be able to parse template string containing HTML.
use environment
- spring-boot 2.0.3.RELEASE
- babel 6.26.0
- babel-polyfill 2.6.1
for example, the following code
// const htmlStr = `<a href="-sharp"/>`
console.log(`htmlStr: ${htmlStr}`)
</script>
We don"t understand what happened. Has anyone ever encountered this problem? (= ^--^ =)