Hi, I currently use Zope-2.6.1 (on Linux and Solaris) with DTML pages. I've noticed a curious thing : I have a text property, which I display with <dtml-var myproperty html_quote size=200>, so that only the first 200 characters are displayed. The problem is that sometimes, the output is truncated in the middle of an HTML tag (generally a <br>), which can be quite confusing for several browsers... Is it a bug ? Is there any way to avoid this ?? Thanks for any advise, Thierry -- Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net
--On Dienstag, 22. Juli 2003 9:05 Uhr +0200 Thierry Florac <thierry.florac@onf.fr> wrote:
Hi,
I currently use Zope-2.6.1 (on Linux and Solaris) with DTML pages.
I've noticed a curious thing : I have a text property, which I display with <dtml-var myproperty html_quote size=200>, so that only the first 200 characters are displayed. The problem is that sometimes, the output is truncated in the middle of an HTML tag (generally a <br>), which can be quite confusing for several browsers...
Is it a bug ?
This is not a bug since it works as expected and truncates the output after N bytes. It does not care about HTML or whatever. If you need a special behaviour you should put additional code into your application. -aj
Thierry Florac wrote:
I've noticed a curious thing : I have a text property, which I display with <dtml-var myproperty html_quote size=200>, so that only the first 200 characters are displayed. The problem is that sometimes, the output is truncated in the middle of an HTML tag (generally a <br>), which can be quite confusing for several browsers...
Perhaps you ment the output is truncated in the middle of an HTML entity? html_quote shouldn't ever generate markup apart from character entities.
participants (3)
-
Andreas Jung -
Jamie Heilman -
Thierry Florac