Reply
remove unwanted HTML from <textarea> tags
Old 03-08-2008, 04:30 PM remove unwanted HTML from <textarea> tags
Skilled Talker

Posts: 77
i made a page for a friend, and made him another page that edits it. It prints out all the html, then you can edit it and save it. The only problem is if he presses enter(to organize and stuff), its adds <BR> tags the page. How can I fix this?

And i cant jsut take out all the <BR>s, because he may type one in.
Skeddles is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-08-2008, 10:53 PM Re: remove unwanted HTML from <textarea> tags
Silent77's Avatar
Ultra Talker

Posts: 254
Name: Silent
Location: Ohio
hard to debug something like that without a link and the code...
maybe you should post both
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 03-09-2008, 10:37 AM Re: remove unwanted HTML from <textarea> tags
chrishirst's Avatar
Super Moderator

Posts: 11,452
Location: Blackpool. UK
find where the receiving code does a "replace(request.form("text_area_name")),vbcrlf,"< br>")" and comment it out.

may not be exactly as that but you should get something like it.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to remove unwanted HTML from <textarea> tags
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11703 seconds with 13 queries