Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to create summary...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedHow to create summary...

 Post Reply Post Reply
Author
superlative View Drop Down
Groupie
Groupie

Not Comparative, I m Superlative :)

Joined: 26 November 2004
Location: Turkey
Status: Offline
Points: 125
Post Options Post Options   Thanks (0) Thanks(0)   Quote superlative Quote  Post ReplyReply Direct Link To This Post Topic: How to create summary...
    Posted: 20 March 2005 at 10:53am
Hi All
 
I need your help, I want to apply RTE v3.0 to our news system :

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

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...


Edited by superlative - 20 March 2005 at 12:22pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.