IntelliJ 的检查器在脚本标记的主体下划线。 谁做错了我或它?
<!DOCTYPE html>
<html>
<head>
<script type="text/ng-template" id="_template/company.inline">
<g:render template="/shared/header"/>
<g:render template="/shared/nav"/>
<section id="content">
<section class="main padder" app-view-segment="1"></section>
</section>
</script>
那么这是一个有效的 xml 吗?而且我不需要用 cdata 或其他东西包装它?
最佳答案
这是最新 EAP 版本中的一个已知错误 (http://youtrack.jetbrains.com/issue/WEB-9833)。它现在已修复,因此应该很快会出现在下一个 EAP 版本中。
关于javascript - IntelliJ 13 提示内联脚本中的 'unescaped xml character',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20157513/