问题描述
我的代码不起作用,有人可以帮忙吗?
temp.dtd
<!DOCTYPE html
[<!ENTITY nbsp " "> <!-- no-break space = non-breaking space,U+00A0 ISOnum -->
<!ENTITY eacute "é"> <!-- latin small letter e with acute,U+00E9 ISOlat1 -->
<!ENTITY ecirc "ê"> <!-- latin small letter e with circumflex,U+00EA ISOlat1 -->
<!ENTITY euml "ë"> <!-- latin small letter e with diaeresis,U+00EB ISOlat1 -->
]>
<html xmlns="http://www.w3.org/1999/xhtml"/>
Myhtml.html
<!DOCTYPE html SYstem "temp.dtd">
<html>
<head>
<Meta charset="UTF-8"/>
<title>XYZ</title>
<link href="css/report-fonts.css" rel="stylesheet" type="text/css"/>
<link href="css/report-base.css" rel="stylesheet" type="text/css"/>
<link href="css/report-summary.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h1>é</h1>
</body>
</html>
我希望 é 被替换为特殊字符,但 html 代码不读取 dtd 文件。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)