Hi,
I'm using fckeditor to edit a section of text. Once the form is submitted I append the data to a sql table and create a text file for Flash to import. My problem is that the text file has 'enter' break and 'tabs', I don't what that but rather a straight line of html code.
Current text file:
hotel <br />
<ul>
<li>grand</li>
<li>luxury</li>
<li>spot</li>
</ul>
Required text file:
hotel <br /><ul><li>grand</li><li>luxury</li><li>spot</li></ul>
Thanks
Write to text file
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
New lines should be "\n" so you could use str_replace to remove them.
Note: use double quotes not single quotes -
Note: use double quotes not single quotes -
Code: Select all
$string_var=str_replace("\n","",$string_var);