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
For HTML 4.01 Transitional, for instance, you can pick the DTD from w3c site. Then search the in the document and navigate the entities, like
%inline;
to know the allowed nested elements.
#PCDATA
is allowed.%inline;
and %fontstyle;
: TT | I | B | U | S | STRIKE | BIG | SMALL
%inline;
and %pharse;
: EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE | ABBR | ACRONYM
They will, in turn, have other nested elements.
You can repeat the operation for other HTML DTDs.
To know how DTDs nesting rules work, I suggest to read a tutorial.