Ashura: HTML-Elemente entfernen exklusive <b><u><i>

Beitrag lesen

Hallo Steffen.

Gibt es eine einfache und effiziente Art aus einem String (Quelle TEXTAREA) alle Tags - bis auf Zeilenumbrüche, Fett-, Underline- und Kursivformaten - zu entfernen?

Ja: strip_tags.

Einen schönen Samstag noch.

Gruß, Ashura

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]