This topic is locked

Truncate HTML fields

8/26/2006 8:01:21 PM
ASPRunnerPro General questions
S
scott73072 author

The truncate large text fields option box does not seem to effect the size of HTML fields. What do I need to change so that an HTML field only displays e.g. 80 characters on a _list.asp page? Thanks.

Sergey Kornilov admin 8/28/2006

Truncating HTML fields is most cases is not possible. You can easily break HTML tags doing this and the whole page will be broken.

S
scott73072 author 8/28/2006

Truncating HTML fields is most cases is not possible. You can easily break HTML tags doing this and the whole page will be broken.


How else can a preview be shown then that doesn't display tags? If I go with a text field that can be truncated, but does show a small preview, it's littered with HTML tags that I don't want the user to see.

Sergey Kornilov admin 8/31/2006

You can use two different fields for this purpose. One with full HTML text and another one for preview purposes which don't have any HTML tags.