Venue Stampede is now available for Batchsubmit.

Support

Support Options

Submit a Support Ticket

 
You are here: Home » WIKI » Help: Wiki Html » Compare

Help: Wiki Html

Version 1
by Rajesh Thyagarajan
Version 2
by Rajesh Thyagarajan

Deletions or items before changed

Additions or items after changed

1 The wiki supports inserting HTML into any wiki context.
2
3 HTML support is built-in, and does not require installing any additional packages.
4
5 == How to Use HTML ==
6 +
7 To inform the wiki engine that a block of text should be treated as HTML, use the ''html'' processor.
8
9 This example should explain:
10 +
11 {{{
12 #!html
13
{{{
14 #!html
15

HTML Test

16 }}}
17 }}}
18
19 Results in:
20 +
21 {{{
22 #!html
23

HTML Test

24 }}}
25
26 -
Note that the wiki sanitizes your HTML code before displaying it. That means that if you try to use potentially dangerous constructs such as Javascript event handlers, those will be removed from the output.
+
Note that Trac sanitizes your HTML code before displaying it. That means that if you try to use potentially dangerous constructs such as Javascript event handlers, those will be removed from the output.
27
28 {{{
29 {{{
30 #!html
31
32 -
This is the ''only'' way to go.
+
This is the ''only'' way to go in Trac 0.11
33
34 }}}
35 }}}
36
37 Results in:
38 +
39 {{{
40 #!html
41
42 -
This is the ''only'' way to go.
+
This is the ''only'' way to go in Trac 0.11
43
44 }}}
45
46 For spans, you should rather use the Macro call syntax:
47 +
48 {{{
49 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]!
50 }}}
51
52 Results in:
53 +
54 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]!
55
56
57 == More Information ==
58
59 * http://www.w3.org/ -- World Wide Web Consortium
60 * http://www.w3.org/MarkUp/ -- HTML Markup Home Page
61
62 ----
63 See also: [Help:WikiFormatting Wiki Formatting], [Help:WikiMacros Wiki Macros]