5 | | Return raw, inline XHTML markup that has been validated and sanitized. |
| 5 | Returns raw, inline XHTML markup that has been validated and sanitized. |
| 6 | |
| 7 | == Validation == |
| 8 | |
| 9 | Markup that doesn't follow these requirements will be rejected with an error message: |
| 10 | |
| 11 | * Elements must be [WikiPedia:Well-formed_element well-formed]. |
| 12 | * Tags and attribute names must be in lowercase, attribute values are required and must be enclosed in quotes. |
| 13 | * Empty elements must be self-closing with a space before the forward slash, e.g. <img ... />. |
| 14 | |
| 15 | == Sanitization == |
| 16 | |
| 17 | Dangerous constructs such as <script> elements will be removed. |
| 18 | |
| 19 | == Use Cases == |
| 20 | |
| 21 | `Inline` is useful for creating "phrase" elements not supported by WikiFormatting, or for including |
| 22 | attributes such as titles. The `#!html` [WikiProcessors WikiProcessor] works well for creating larger |
| 23 | chunks of markup, and in particular block-level elements such as an <address> that are also not supported |
| 24 | (a [http://microformats.org/ Microformat] is an excellent example). However, `Inline` is designed to be |
| 25 | embedded directly in another construct, typically a paragraph of text. |