How do I add lines that start and end with <...> into my page content?

Permalink
I am trying to add the following lines to a page in a C5 site.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>


Not that it matters for purposes of this post but the page in question is a page of instructions I am creating for turning on Pretty URL's in C5.

Anyway...

The TinyMCE editor interprets the lines that start and end with <..> as invalid HTML tag lines and drops them (understandable if not convenient for me).

The obvious way around this is to go into the HTML editing view of the content block and add the lines in this way..

&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
&lt;/IfModule&gt;


Which works fine through one Update of the content block in which I place the above lines.

But...when I go and edit the block again C5/TinyMCE strips out the lines containing characters I replaced with their character entity equivalent and presents me with just...

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


So how do I add all the lines I want to add in such a way that C5 and/or the TinyMCE editor do NOT strip out the lines in question??

I sure hope there is a way around this as this is important for me to be able to do.

Any input on this would be appreciated.

Thanks.

Carlos

 
carlos123 replied on at Permalink Reply
You don't even have to go into the HTML view at all.

Simply enclose any text on a page with "<" and ">", hit the Update button, and then go back in and try and edit the block content again (containing the text you enclosed in the brackets).

Presto! What was there is now gone. For good.

Carlos