1.The only special character that has given me a problem is the ampersand, so I have restricted my translation to that one character rather than use a shotgun htmlentities() function approach.
惟一為我?guī)韱栴}的一個特殊字符是 and符號,所以我只需處理該字符而沒有采用htmlentities()函數(shù)的方式。
2.You can stack those up by simply adding an ampersand (&) between successive name/value pairs, like this: name=jennifer&job=president.
只需簡單地在連續(xù)的名稱/值對之間添加一個 “與” 符號(&),即可將其放在一起,就像這樣:name=jennifer&job=president。
4.To set up an entity, create a name for it, and type it within your content, starting with an ampersand (&) and ending with a semicolon (;)—for example, &coname; (or whatever you name it).
為了設置實體,必須先為它創(chuàng)建一個名稱,然后將它輸入到內容中,以and 符號(&)開始,并以分號(;)結束 —例如,&coname;。