Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-03-01 17:03:13

batterj2
New member
Registered: 2009-03-01
Posts: 2
Website

<CODE>/HTML tags

Hi all,

Apologies if this has been posted before - I did a quick search and couldn't find anything.

I've been using Xinha for about 6 months now, integrated into CodeIgniter and its been great so far.  Recently I've started using it to produce web development tutorials which has ultimately led me to putting in HTML code into the text.  Unfortunately when it posts the data it ignores the < and > characters for the code I want to put in and as a result I end up with a mixture of what I had intended to be sample code (i.e. I want the < and > characters to be converted into < and >) and the actual code that Xinha converts.  As a result I end up with rogue HTML tags in the middle of my text.

As such if this has been addressed before could you help me find a solution to my problem.  If not, could I make a request for either a <CODE> button or to either make the editor convert ALL characters or to provide more accurate analysis of used characters.

Offline

#2 2009-03-09 00:47:52

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: <CODE>/HTML tags

Are you pasting/typing your sample code into the WYSIWYG view or into the HTML view.

When you type/paste into the WYSIWYG view then it should all work just normally, < will be < in the HTML view etc.


James Sleeman

Offline

#3 2009-03-09 05:31:21

batterj2
New member
Registered: 2009-03-01
Posts: 2
Website

Re: <CODE>/HTML tags

It appears to occur when you try to edit an existing article.

To repeat the error I'm getting:

1) Create an article with an <h1> tag in the middle of the text (without going into the HTML mode) and store it in the database.  Upon inspection the <h1> is correctly converted into <h1>

2) Open the same article in the editor and the HTML code (not the WYSIWYG text) is changed back into <h1>, resulting in the text being displayed in a <h1> format.  If you were to update the article now, it would store the erroneous <h1> tag (as it is already HTML) and mess up the text.

I've confirmed that this is a XINHA Javascript error as the source code generated on the page indicates that the correct values are extracted from the database.

<td colspan="2">
<textarea name="body" cols="100" rows="10" id="txt" >
...
  <p>The tags that are used in HTML each have a different meaning and are named appropriately. For example a heading of the highest importance is 
   <h1> meaning header level 1. Tags tell the web browser how to present the element and search engines like Google what that text is for.     </p> 
 ...</textarea>
</td>

Last edited by batterj2 (2009-03-09 05:39:19)

Offline

Board footer

Powered by FluxBB