javascript - IntelliJ 13 提示内联脚本中的 'unescaped xml character'

标签 javascript html xml angularjs intellij-idea

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/

相关文章:

python - ElementTree find() 总是返回 None

javascript - 使用 javascript 创建 '<a href onclick=function... 我收到错误 : Uncaught ReferenceError: popup is not defined

javascript - 检查 Discord 服务器中是否存在用户 ID

javascript - AngularJS 在 ng-repeat 中更改变量

html - 如何修复 Wordpress 管理栏破坏 100% 高度

html - 如何通过展开空标签来分层背景图片?

javascript - JQuery: Cluetip questions - 关闭提示和最大高度

javascript - 具有某些功能的发送按钮

xml - 从大型 Clojure 树结构中的惰性序列中删除元素,避免头部保留

php - 如何使用 PHP 读取/显示 XML