Print Page | Close Window

I need a function

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14071
Printed Date: 30 March 2026 at 3:03pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: I need a function
Posted By: zaboss
Subject: I need a function
Date Posted: 02 March 2005 at 8:43am
I need a function to clean up some html formatting...

I have use an HTML editor for an pplication I have and now I switch to another one, standard compliant. The old editor injects some very complex HTML code (it's HTMLArea, I am sure many people here are familiar with it) which now I need to strip down the HTML from the old entries.
Basically, I need to delete all HTML formatting except image and links. So, the function should check the db field for anything between a "<" and ">" but "<a href...>" "</a>" or "<img src...>" ...

I had several trys but it wouldn't work...


-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web



Replies:
Posted By: dpyers
Date Posted: 02 March 2005 at 10:22am

I seem to recall that HtmlArea had a javascript function for cleaning up HTML produced by inserting MS Word docs. Might be able to add regular html tags to it's list of microcrap tags.



-------------

Lead me not into temptation... I know the short cut, follow me.



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