問題:
myeclipse裡面html代碼
<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'>HTML 4.01 Frameset</option>
報錯
Multiple annotations found at this line:
- Invalid location of tag (HTML).
- Start tag (<option>) not closed.
- Invalid character used in text string ('>HTML 4.01
Frameset).
Start tag (<option>) not closed.
單引号和雙引号互換也不行
解決辦法:
轉義
小于号的轉義字元為<
大于号的轉義字元為>