antisamy-empty.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!--
  3. W3C rules retrieved from:
  4. http://www.w3.org/TR/html401/struct/global.html
  5. -->
  6. <anti-samy-rules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xsi:noNamespaceSchemaLocation="antisamy.xsd">
  8. <directives>
  9. <directive name="omitXmlDeclaration" value="true"/>
  10. <directive name="omitDoctypeDeclaration" value="true"/>
  11. <directive name="maxInputSize" value="0"/>
  12. <directive name="useXHTML" value="true"/>
  13. <directive name="formatOutput" value="false"/>
  14. <!--
  15. remember, this won't work for relative URIs - AntiSamy doesn't
  16. know anything about the URL or your web structure
  17. -->
  18. <directive name="embedStyleSheets" value="false"/>
  19. </directives>
  20. <common-regexps>
  21. </common-regexps>
  22. <!--
  23. Tag.name = a, b, div, body, etc.
  24. Tag.action = filter: remove tags, but keep content, validate: keep content as long as it passes rules, remove: remove tag and contents
  25. Attribute.name = id, class, href, align, width, etc.
  26. Attribute.onInvalid = what to do when the attribute is invalid, e.g., remove the tag (removeTag), remove the attribute (removeAttribute), filter the tag (filterTag)
  27. Attribute.description = What rules in English you want to tell the users they can have for this attribute. Include helpful things so they'll be able to tune their HTML
  28. -->
  29. <!--
  30. Some attributes are common to all (or most) HTML tags. There aren't many that qualify for this. You have to make sure there's no
  31. collisions between any of these attribute names with attribute names of other tags that are for different purposes.
  32. -->
  33. <common-attributes>
  34. </common-attributes>
  35. <!--
  36. This requires normal updates as browsers continue to diverge from the W3C and each other. As long as the browser wars continue
  37. this is going to continue. I'm not sure war is the right word for what's going on. Doesn't somebody have to win a war after
  38. a while? Even wars of attrition, surely?
  39. -->
  40. <global-tag-attributes>
  41. </global-tag-attributes>
  42. <tags-to-encode>
  43. </tags-to-encode>
  44. <tag-rules>
  45. </tag-rules>
  46. <!-- CSS validation processing rules -->
  47. <css-rules>
  48. <!-- end manual properties -->
  49. </css-rules>
  50. <allowed-empty-tags>
  51. </allowed-empty-tags>
  52. </anti-samy-rules>