Edited - Ignore this, sorry but I've just done it. I needed to replace \n and not <br />
Hi,
I am currently using a script to change some data I take from a text box into xml. The text box isn't a normal HTML form box but an instance of an editize box (www.editize.com). When I submit my data, editize puts in <br /> at the end of each line.
I am trying to strip these out with the following
$text = preg_replace("'<br />'",'',$text);
I have a lot of these statements on my page, for example to take out the anchor tag and all the others work.
I have also tried strip_tags with this statement
$text .= strip_tags($row["description"]);
But that doesn't seem to take them out either.
The output I get looks like this
<description>
The growth in Internet use has created an exciting new marketing and sales
tool for businesses. Nearly all businesses seem to have a website, however
before considering a site for your business you need to be clear as to its
purpose and value. Issues to consider include who will design and maintain the
website, will it be for sales or purely to provide information for prospective
clients. There will be cost and security implications, all of which need to be
addressed.
</description>
It should look like this (without any line breaks)
<description>The growth in Internet use has created an exciting new marketing and sales tool for businesses. Nearly all businesses seem to have a website, however before considering a site for your business you need to be clear as to its
purpose and value. Issues to consider include who will design and maintain the website, will it be for sales or purely to provide information for prospective clients. There will be cost and security implications, all of which need to be addressed.</description>
Thanks