On Sunday 11 March 2001 18:45, you wrote:

> Well, I'm having problems again.  This time with string replacement. 
> I'd like people to be able to write notes on one of the site's I'm
> helping with, and would like them to be able to use Bold, Italic,
> Underline and <a href> tags.  I tried using striptags(); but that would
> strip anything within double quotes too.  So I've gotten around it by

huh? strip_tags works fine for me.

echo strip_tags ('Hello <a href="http://foo/">bar</a> 
"world"<br><em>there</em>', '<a> <br>');

creates

'Hello <a href="http://foo/">bar</a> "world"<br>there'

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.

- Edsger W. Dijkstra

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to