Changes between Version 3 and Version 4 of WikiHtml


Ignore:
Timestamp:
Oct 13, 2009, 3:03:56 PM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiHtml

    v3 v4  
    1 {{{ 
    2  #!html
    3 
    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 carisoprodol
    6 </div></div>
    7 
    8 }}}
    9  
    101= Using HTML in Wiki Text =
    112
     
    2011{{{
    2112#!html
    22 &amp;lt;pre class=&amp;#34;wiki&amp;#34;&amp;gt;{{{
     13<pre class="wiki">{{{
    2314#!html
    24 &amp;amp;lt;h1 style=&amp;#34;text-align: right; color: blue&amp;#34;&amp;amp;gt;HTML Test&amp;amp;lt;/h1&amp;amp;gt;
    25 }}}&amp;lt;/pre&amp;gt;
     15&lt;h1 style="text-align: right; color: blue"&gt;HTML Test&lt;/h1&gt;
     16}}}</pre>
    2617}}}
    2718
     
    2920{{{
    3021#!html
    31 &amp;lt;h1 style=&amp;#34;text-align: right; color: blue&amp;#34;&amp;gt;HTML Test&amp;lt;/h1&amp;gt;
     22<h1 style="text-align: right; color: blue">HTML Test</h1>
    3223}}}
     24
     25Note 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
     27Since 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.
     28To 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"
     33This is the ''only'' way to go in Trac 0.11
     34}}}
     35}}}
     36
     37Results in:
     38{{{
     39#!div class=important style="border: 2pt solid; text-align: center"
     40This is the ''only'' way to go in Trac 0.11
     41}}}
     42
     43For 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
     48Results in:
     49 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]!
     50
    3351
    3452== More Information ==