XHTML - <a> 中允许哪些元素元素?

2022-01-18 00:00:00 tags hyperlink html xhtml

我知道 span strongem.还有其他人吗?我正在尝试过滤链接中的文本,并且需要知道哪些元素应该不被过滤?

I know span strong and em. Are there any others? I'm trying to filter a text which goes inside a link, and need to know what elements should I leave unfiltered?

推荐答案

根据DTD,很多元素:

br | span | bdo | map
object | img | tt | i | b | big | small 
ins | del | script | input | select | textarea | label | button
em | strong | dfn | code | q |
               samp | kbd | var | cite | abbr | acronym | sub | sup 

相关文章