Elrte and right angle brackets ( &lt; / < ) inside <PRE> element

Added by Greg Jasinski 6 months ago

Guys, if anybody went throught this hell and survived please lend me your hand. I'm stuck trying to write some code examples by inserting them in the <PRE> tag.

What happens is that each time i save the document containing (this is inside the PRE tags in the editor):

  <a href=" " > Hello </a>

it lands in the database - ok, but when i reload the admin page with Elrte then all the tags are gone and i'm left with what's inside. It might not be soo bad (i could stand that i don't see what it's there unless it stays there) but when i save the document again well: the tags disappear forever. This is a simple example but what i'm trying to do is to put something more complex in the PRE tags, some forms etc. and they do a real mess with Elrte.

Anybody can help me out a bit?

EDIT: Maybe a better question:

How can i stop elrte from converting

&lt; and &gt; - this way they are stored in the database

back to: < and > ?

If i could do this then the next save will be ok :/


Replies (2)

RE: Elrte and right angle brackets ( &lt; / < ) inside <PRE> element - Added by Troex Nevelin 6 months ago

probably elRTE parser is broken with <pre> tag. I could recommend to use &lt; &gt; instead of < >. But as I know they will not work as expected in PRE tag. Maybe another solution is to use custom replace rules but they are tricky.

RE: Elrte and right angle brackets ( &lt; / < ) inside <PRE> element - Added by Greg Jasinski 6 months ago

Thanks Troex, it's the first thing i tried but they are being converted into < > again so after next save they disappear. I'll post solution if i find it.

(1-2/2)