Print Page | Close Window

How to create summary...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14335
Printed Date: 28 March 2026 at 7:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to create summary...
Posted By: superlative
Subject: How to create summary...
Date Posted: 20 March 2005 at 10:53am
Hi All
 
I need your help, I want to apply RTE v3.0 to our news system :
  • http://www.knowhow.gen.tr/addentry.asp - http://www.knowhow.gen.tr/addentry.asp

This URL our add news URL. We use very bad text editor. But this is integrate our main page :

  • http://www.knowhow.gen.tr/ - http://www.knowhow.gen.tr/

I trim first 350 character for summary. And if open <a tag and dont close this tag in first 350 chars, script will add 350 char (350+350=700)

But I can not do this for RTE v3.0 I see sometimes Response Buffer Limit Exceeded error. And RTE can include many HTML tag.
 
I want to trim first 350-400 char for summary and if <a or <img tag opened in first 350 chars and dont close, script auto add 350 chars for </a or >. Because dont closed tags harm our layout. Please help me. How to trim HTML tags but exclude <a and <img tags.. Check my works :
 

Text = Mid(Trim(Text),1,350)

CheckA=1

CheckSlashA=10

Do
 
CheckA = InStr(1, Text, "<")
 
CheckSlashA = InStr(1, Text, ">")+1

If CheckSlashA=1 then CheckSlashA = Len(Text)

If CheckA<>0 then

Text2 = Mid(Trim(Text),CheckA,CheckSlashA-CheckA)

Text = Replace(Text,Text2," ")

End if

Loop until CheckA=0
 
This is only trim < bla bla > codes. I am working... I want to exclude <a and <img tags. Thanks...


-------------
http://www.knowhow.gen.tr" rel="nofollow">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net