|
||||
How to remove Line Feeds (LF) of a page?
Hi,
I try to grab the content from a page with A LOT of line feeds("LF", a "\n" ?) but failed. How do we strip out the line-feeds, carriage return, new line, etc. for a whole page? Do we use str_replace() ? I found this: PHP Code:
Anyone kind enough to provide the code? By the way, the code will be used to generate RSS feed of http://www.petalingstreet.org Thank you in advance. |
|
||||
Hi,
Try this: 1. Parse the strings line by line. 2.a. For each line, use trim() to remove space, tab, line feed, carriage return, NUL-byte and vertical tab. 2.b. Append the 'trim'ed line to a buffer 3. Output the buffer Hope this will help ![]() The webber
__________________
Send Trackback and Submit your blog to Blog Portal |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anybody here participate in on line survey? | pohkeiong | Mamak Stall | 1 | 15-01-2006 06:05 PM |
| nak remove password | awida | Mamak Stall | 10 | 14-11-2005 02:42 PM |
| Thin Fine Line @ noorullah.org | MENJ | Websites Review and Suggestion | 5 | 27-12-2004 02:03 PM |
| WALK-IN INTERVIEWS: DIGI IT Line Department Dateline 31 July | Defcon | Job Vacancies | 2 | 02-08-2004 02:13 AM |
| How to remove this thing? | eric | Website Design | 26 | 05-03-2004 10:34 AM |
All times are GMT +8. The time now is 02:32 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.













Linear Mode

