Re: Display Problemo
| From: | Jack Dempsey | Date: | Tue, 20 Nov 2001 17:02:05 +0000 |
| Subject: | Re: Display Problemo | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75261@lists.php.net to get a copy of this message | ||
1. what do you want the <br> tags to be? a simple
str_replace('<br>','',$text)
will strip the tags...
2. use <pre> html text </pre>
jack
Lerp wrote:
> I have a small php app that I'm building to display, insert, edit, etc...
> various types of code snipits (asp, php, html, etc...) in a db. I also have
> a download option that creates a text file with the code that they've
> selected.
>
> I have 2 problems...the first is that when I go to view the text file I have
> all sorts of <BR> tags within the text, this is due to the nl2br function I
> used prior to the db insertion. How would I get rid of those?
>
> The seond problem is when a user goes to view an html code example on the
> webpage, say with
> a hyperlink, the hyperlink is made active replacing the code with the actual
> <a href> tag.
>
> Thx in advance, Lerp
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net