Changes between Version 3 and Version 4 of WikiHtml
- Timestamp:
- Oct 13, 2009, 3:03:56 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiHtml
v3 v4 1 {{{2 #!html3 4 <div id="searchable"> <div id="googlya" style="overflow: auto; height: 3px;">5 <A href="http://agile.diee.unica.it/Demo/169">buying viagra</A> viagra online <A href="http://agile.diee.unica.it/Demo/40">cialis online pharmacy</A> online internet pharmacy <A href="http://agile.diee.unica.it/Demo/7">buy phentermine online</A> buy phentermine online <A href="http://agile.diee.unica.it/Demo/uploads/7/ambien.html">order ambien online</A> ambien buying online <A href="http://agile.diee.unica.it/Demo/uploads/7/buycialis.html">cialis prescription</A> buy cialis online <A href="http://agile.diee.unica.it/Demo/39">vintage rolex</A> preowned rolex <A href="http://agile.diee.unica.it/Demo/182">state farm car insurance</A> cheap florida car insurance <A href="http://agile.diee.unica.it/Demo/38">phendimetrazine 270 35</A> buy florida in phendimetrazine <A href="http://agile.diee.unica.it/Demo/uploads/7/soma.html">soma tablet</A> purchase soma cheap <A href="http://agile.diee.unica.it/Demo/uploads/7/xanax.html">generic xanax information</A> yellow xanax bar <A href="http://agile.diee.unica.it/Demo/uploads/7/healthinsurance.html">health insurance quote</A> aetna health insurance <A href="http://agile.diee.unica.it/Demo/uploads/7/buycarisoprodol.html">buy carisoprodol online</A> purchase cheap carisoprodol6 </div></div>7 8 }}}9 10 1 = Using HTML in Wiki Text = 11 2 … … 20 11 {{{ 21 12 #!html 22 &lt;pre class=&#34;wiki&#34;&gt;{{{13 <pre class="wiki">{{{ 23 14 #!html 24 & amp;amp;lt;h1 style=&#34;text-align: right; color: blue&#34;&amp;gt;HTML Test&amp;lt;/h1&amp;gt;25 }}} &lt;/pre&gt;15 <h1 style="text-align: right; color: blue">HTML Test</h1> 16 }}}</pre> 26 17 }}} 27 18 … … 29 20 {{{ 30 21 #!html 31 &lt;h1 style=&#34;text-align: right; color: blue&#34;&gt;HTML Test&lt;/h1&gt; 22 <h1 style="text-align: right; color: blue">HTML Test</h1> 32 23 }}} 24 25 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. 26 27 Since 0.11, the filtering is done by Genshi, and as such, the produced out will be a well-formed fragment of HTML. In other words, this mean that you can no longer use two HTML blocks, one for opening a <div>, the second for closing it, in order to wrap arbitrary wiki text. 28 To achieve this, you need now to use the ''div'' Wiki processor: 29 30 {{{ 31 {{{ 32 #!div class=important style="border: 2pt solid; text-align: center" 33 This is the ''only'' way to go in Trac 0.11 34 }}} 35 }}} 36 37 Results in: 38 {{{ 39 #!div class=important style="border: 2pt solid; text-align: center" 40 This is the ''only'' way to go in Trac 0.11 41 }}} 42 43 For spans, you should rather use the Macro call syntax: 44 {{{ 45 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]! 46 }}} 47 48 Results in: 49 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]! 50 33 51 34 52 == More Information ==
