[thesite] Body edit textarea - not always escaping chars

jeff jeff at members.evolt.org
Sun Dec 17 01:44:27 CST 2000


<ol>,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Oliver Lineham
:
: example (i haven't touched this article):
: http://www.evolt.org/article/view/12/4093/evolt.org
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

first few lines of the source from the page:

This is the plain text version --
there is an Excel sheet available
(<a href=#comm>see below</a>).

Product index:
<a href=#access>Access</a>,
<a href=#excel>Excel</a>,
<a href=#frontpage>Frontpage</a>,
<a href=#outlook>Outlook</a>,
<a href=#photodraw>Photodraw</a>,
<a href=#powerpoint>Powerpoint</a>,
<a href=#publisher>Publisher</a>, and
<a href=#word>Word</a>.
</p>

<a name=access></a>
<h3>Product: Access 2000</h3>
<table border="1" cellpadding="2" cellspacing="0">

same lines from the source of the edit page:

This is the plain text version --
there is an Excel sheet available
(<a href=#comm>see below</a>).

Product index:
<a href=#access>Access</a>,
<a href=#excel>Excel</a>,
<a href=#frontpage>Frontpage</a>,
<a href=#outlook>Outlook</a>,
<a href=#photodraw>Photodraw</a>,
<a href=#powerpoint>Powerpoint</a>,
<a href=#publisher>Publisher</a>, and
<a href=#word>Word</a>.
</p>

<a name=access></a>
<h3>Product: Access 2000</h3>
<table border="1" cellpadding="2" cellspacing="0">

same lines from the textarea on the edit page:

This is the plain text version --
there is an Excel sheet available
(<a href=#comm>see below</a>).

Product index:
<a href=#access>Access</a>,
<a href=#excel>Excel</a>,
<a href=#frontpage>Frontpage</a>,
<a href=#outlook>Outlook</a>,
<a href=#photodraw>Photodraw</a>,
<a href=#powerpoint>Powerpoint</a>,
<a href=#publisher>Publisher</a>, and
<a href=#word>Word</a>.
</p>

<a name=access></a>
<h3>Product: Access 2000</h3>
<table border="1" cellpadding="2" cellspacing="0">

hate to say it, but they're identical in every way.

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: There are no <p>'s in the body at all (look at the code).
: You can see where they used to be, because the CR/LFs
: are still there.  There were paragraphs there when Rudy
: wrote the article - bits like the "Why Excel?" section didn't
: used to be one big block of text - it was multiple
: paragraphs.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

if you'll notice the first <p> tag you encounter in the source is a closing
one just before the first named anchor.

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: If you still don't believe me that this is a bug, try submitting
: an article
: that is just:
:
:          <p>First</p>
:          <p>Second</p>
:
: View it, check the source, it will have <p>'s.
:
: Click the edit link, hit "Update Article!", view the article
: again and those <p>'s will be gone.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tried that - it's the same every time.  all the <p> tags are exactly where i
put them.

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Why aren't you using htmleditformat()?
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

because it has nothing to do with this problem.  furthermore, it aggravates
things by removing carriage returns.  at least with carriage returns in
place when an article is reviewed for the first time we can see where the
author intended to break up content into paragraphs and we can then wrap
paragraphs with <p></p> tags.

don't even get me started on using ParagraphFormat() when displaying the
content.

thanks,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thesite mailing list