Skip to content

Instantly share code, notes, and snippets.

@puffnfresh
Created November 24, 2010 05:02
Show Gist options
  • Select an option

  • Save puffnfresh/713145 to your computer and use it in GitHub Desktop.

Select an option

Save puffnfresh/713145 to your computer and use it in GitHub Desktop.
<!--================== Content models for exclusions =====================-->
<!-- a elements use %Inline; excluding a -->
<!ENTITY % a.content
"(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc.inline;)*">
<!-- pre uses %Inline excluding img, object, applet, big, small,
font, or basefont -->
<!ENTITY % pre.content
"(#PCDATA | a | %special.basic; | %fontstyle.basic; | %phrase.basic; |
%inline.forms; | %misc.inline;)*">
<!-- form uses %Flow; excluding form -->
<!ENTITY % form.content "(#PCDATA | %block; | %inline; | %misc;)*">
<!-- button uses %Flow; but excludes a, form, form controls, iframe -->
<!ENTITY % button.content
"(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
table | br | span | bdo | object | applet | img | map |
%fontstyle; | %phrase; | %misc;)*">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment