For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2006 > RE: [PHP-DB] Remove newlines from field









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] Remove newlines from field
Miles Thompson

2006-03-20, 9:55 pm

At 07:17 PM 3/20/2006, Miles Thompson wrote:
><tops snipped>
>
>


Forgot to add that the writers work in WP 5.2 for Windows, because it has
an excellent indexing function which enables them to locate back stories v.
quickly.

That text is cut and pasted into an HTML textarea, which is saved to a
MySQL database. nl2br() is also applied to the text before saving. The idea
is to get straight HTML into the database.

For display the text is fetched, stripslash()'d and fed as an XML stream to
an HTMLText control in a Flash movie.

Quirks in how the movie displayed the text, resulted in some of the
constructs that had to be detected and removed. Same thing, occasionally,
in the textarea.

So this may not be the ideal solution, but it works for us.

Cheers - Miles


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com