Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-31 08:22:41

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

"==" and <notextile> producing wacky results

What I want to have in my article body is this:

<pre><code>&lt;div class=“page-toc”&gt;
&lt;h3&gt;On this Page&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Directions to the Inn by Road&lt;/li&gt;
&lt;li&gt;Directions to the Inn from the Airport&lt;/li&gt;
&lt;li&gt;Directions to the Inn from Major Tucson Hospitals&lt;/li&gt;
&lt;li&gt;Directions to Nearby Conveniences and Entertainments&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</code></pre>

But when I use “==” or &lt; notextile &gt;&lt;/ notextile &gt; to escape the HTML, I get this instead:

<pre><code>&lt;p&gt;&lt;br /&gt;
&amp;#60;div class&amp;#61;&amp;#34;page&amp;#45;toc&amp;#34;&amp;#62;&lt;br /&gt;
&amp;#60;h3&amp;#62;On this Page&amp;#60;/h3&amp;#62;&lt;/p&gt;

&lt;p&gt;&amp;#60;ul&amp;#62;&lt;br /&gt; &amp;#60;li&amp;#62;Directions to the Inn by Road&amp;#60;/li&amp;#62;&lt;br /&gt; &amp;#60;li&amp;#62;Directions to the Inn from the Airport&amp;#60;/li&amp;#62;&lt;br /&gt; &amp;#60;li&amp;#62;Directions to the Inn from Major Tucson Hospitals&amp;#60;/li&amp;#62;&lt;br /&gt; &amp;#60;li&amp;#62;Directions to Nearby Conveniences and Entertainments&amp;#60;/li&amp;#62;&lt;br /&gt; &amp;#60;/ul&amp;#62;&lt;br /&gt; &amp;#60;/div&amp;#62;&lt;br /&gt; &lt;/p&gt;</code></pre>

Will I have to have to turn off textile for the whole article body (and it’s a long one) just to get this little part to work right?

Offline

#2 2006-02-14 01:17:06

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: "==" and <notextile> producing wacky results

Get rid of the blank line and just include the raw HTML as-is. Textile should leave it alone.


Alex

Offline

#3 2006-02-14 19:48:47

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: "==" and <notextile> producing wacky results

Thanks, zem. I’ll give that a try in my localhost-ed version of the site this evening. Meanwhile, the live version is taking care of the problem with a suggestion from the TextDrive forums.

Offline

#4 2006-02-15 23:12:55

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: "==" and <notextile> producing wacky results

I added this to the FAQ.


Alex

Offline

#5 2006-02-16 01:16:39

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: "==" and <notextile> producing wacky results

Good info. Thanks.

Offline

Board footer

Powered by FluxBB