admin管理员组文章数量:1184941
My IDE (phpstorm
) complains that this contains an Unescaped xml character
.
This has been bugging me for a while:
<? } if (isset($_GET[id])) { ?>
document.getElementById("facebook_likebutton").innerHTML = '<';
<? } ?>
it marks the '<'
as the part where its an error.
see this image:
My IDE (phpstorm
) complains that this contains an Unescaped xml character
.
This has been bugging me for a while:
<? } if (isset($_GET[id])) { ?>
document.getElementById("facebook_likebutton").innerHTML = '<';
<? } ?>
it marks the '<'
as the part where its an error.
see this image:
Share Improve this question edited Dec 18, 2014 at 16:19 Kristian Rafteseth asked Dec 18, 2014 at 15:53 Kristian RaftesethKristian Rafteseth 2,0326 gold badges29 silver badges47 bronze badges 1 |3 Answers
Reset to default 22Change
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
to
<!DOCTYPE html>
and the error will be gone.
source
Change the inspection settings as follow:
- go to settings Ctrl+Alt+S
- go to Editor>Inspections>HTML
- uncheck Malformed content of "script" tag , or keep it checked and change the Severity (Red box) from Error to Warning or Weak Warning.
the simple answer was that it didnt like having a <
sign inside the <script>
tag
本文标签: javascriptUnescaped xml characterStack Overflow
版权声明:本文标题:javascript - Unescaped xml character - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738306603a2073858.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
<?
should be<?php
. – Quentin Commented Dec 18, 2014 at 15:56