🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #70

Re: striphtmlslashes

#70
From: Krzyszof Ostrowski
Date: Sat, 18 Aug 2001 08:28
20 lines
1655 bytes
Użytkownik "Zezero" <zezero@go2.pl> napisał w wiadomości
news:9ll83o$e34$1@news.tpi.pl...
> Jest w PHP taka funkcja. Problem w tym, że zapomniałem nazwy - cos jakby
> striphtmltags() .
> Służy do usuwania z łańcucha tekstowego tagów HTML. Czy moglibyście
> przypomnieć mi dokładną nazwę?


string strip_tags(string str, string [allowable_tags] );

This function tries to strip all HTML and PHP tags from the given string. It
errors on the side of caution in case of incomplete or bogus tags. It uses
the same tag stripping state machine as the fgetss() function.

You can use the optional second parameter to specify tags which should not
be stripped.

Note: Allowable_tags was added in PHP 3.0.13, PHP4B3.

ostry
Technical Details
Message-ID: <9ll915$nfj$1@news.formus.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!pcmedia.com.pl!news.man.szczecin.pl!news.tpi.pl!news.nask.pl!newsfeed.formus.pl!news.formus.pl!not-for-mail
References: <9ll83o$e34$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!pcmedia.com.pl!news.man.szczecin.pl!news.tpi.pl!news.nask.pl!newsfeed.formus.pl!news.formus.pl!not-for-mail
From: "Krzyszof Ostrowski" <ostry@7bulls.com>
Newsgroups: pl.comp.lang.php
Subject: Re: striphtmlslashes
Date: Sat, 18 Aug 2001 10:28:20 +0200
Organization: Formus Polska
Lines: 22
Message-ID: <9ll915$nfj$1@news.formus.pl>
References: <9ll83o$e34$1@news.tpi.pl>
NNTP-Posting-Host: poznan.7bulls.com
X-Trace: news.formus.pl 998123365 24051 62.32.178.2 (18 Aug 2001 08:29:25 GMT)
X-Complaints-To: abuse@formus.pl
NNTP-Posting-Date: Sat, 18 Aug 2001 08:29:25 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit