Print Page | Close Window

Cutting the RTE generated content

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=19739
Printed Date: 29 March 2026 at 12:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Cutting the RTE generated content
Posted By: dozer
Subject: Cutting the RTE generated content
Date Posted: 06 May 2006 at 2:34pm
Hello,

I would like to flood some content created using RTE Editor to other sections of my site.

For example - showing the first two lines of text from a blog or articles entry on the site's main page (with or without all the graphical features)...

How can this be accomplished? clearly this is not possible using regular string manipulation (or is it?)

Thanks in advance.



Replies:
Posted By: dozer
Date Posted: 13 May 2006 at 7:54pm
Borg, Please help...
I know how to manipulate strings, but all the additional HTML tags on the way are making me sweat Smile


Posted By: WebWiz-Bruce
Date Posted: 15 May 2006 at 9:13am
Sorry I'm not even sure what you are trying to do, but it looks like you are requiring quite a substantial bit of customised programming.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dozer
Date Posted: 17 May 2006 at 8:46am
Hello again,
 
Lets say I've read from the user an article with 20 lines and stored it to my DB.
All I want is to extract the first few (2-3) lined from that article, remove all the design features (bold, font size ect.) and write those few lines to the screen.
 
for example:
 
Article Headline 1
 first line...  first line...  first line...  first line...
 second line...  second line...  second line...   second line...
                                                                [ click here for full article ]
 
Article Headline 2
 first line...  first line...  first line...  first line...
 second line...  second line...  second line...   second line...
                                                                [ click here for full article ]
 
Article Headline 3
 first line...  first line...  first line...  first line...
 second line...  second line...  second line...   second line...
                                                                [ click here for full article ]


Posted By: WebWiz-Bruce
Date Posted: 17 May 2006 at 9:36am
This is not actually part of the RTE, which is designed to be integrated into a pre-existing web from, not to build an ASP application from.

Have a look in the ASP -> Tutorial section of this web site as there are some tutorials on how to write to and display data from a database.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dozer
Date Posted: 17 May 2006 at 2:31pm
Man, my english sucks.
I'm having a hard time explaining myself.
 
I know how to extract data from DB.
All I want is to manipulate data generated by the RTE and "crop" the first line or two (and not the whole data)
 
maby splitting the source string by (chr(10)) and showing only the first line or two form the output array??
 
But how will I get rid of the text formatting?
 
Thanks again


Posted By: WebWiz-Bruce
Date Posted: 17 May 2006 at 4:04pm
You could use the Mid and Trim functions built into ASP to remove unwanted text from an ASP string, but removing the HTML would be much harder, using regular expressions would probably be the simplest way.

Have a look of Google for the Regular Expression string for stripping HTML from a string.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



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