Mailinglisten-Archive |
doch!
[schnipp]
string htmlspecialchars(string string);
Certain characters have special significance in HTML, and should be
represented by HTML entities if they are to preserve their meanings.
This function returns a string with these conversions made. This
function is useful in preventing user-supplied text from containing HTML
markup, such as in a message board or guest book application.
At present, the translations that are done are:
'&' (ampersand) becomes '&'
'"' (double quote) becomes '"'
'<' (less than) becomes '<'
'>' (greater than) becomes '>'
Note that this functions does not translate anything beyond what is
listed above. For full entity translation,
see htmlentities().
^^^^^^^^^^^^^
[...]
Fabian Schoen wrote:
>
> Tag,
>
> ich kann im Moment leider gerade nicht an die Dateien ran, aber soviel ich
> weiss, konvertiert htmlentities keine Hochkommas. Soviel ich weiss, habe
> ich es eben mit dieser Funktion versucht, Hochkommas im Text zu
> konvertieren. Oder geht bei Dir mit htmlentities die Konvertierung von
> Hochkommas?
>
> mfg fabian
>
> ich convertiere alles in html um, lege es dann in die Datenbank ab! ist
> sowieso besser, wenn Browser als Ausgabemedium hast.
>
> in php gibt es die Funktion -> string htmlentities(string string);
> konvertiert also alles in html um...
>
> Gru
>
> ------------------------------------------------------------------------
>
> ß
> Alex
>
> Holger Faustmann wrote:
> >
> > Hallo Liste,
> >
> > ich habe folgendes Problem...
> >
> > Es gibt ein Formular mit einem Textarea Feld.
> > Alle Eingaben sollen in der MySQL-DB gespeichert
> > werden.
> > Wenn jemand bei der Texterfassung ein Hochkomma
> > verwendet, wird der Datensatz nicht gespeichert.
> >
> > Wie kann man das Problem lösen?
> >
> > Gruß
> > --
> > =================================
> > Holger Faustmann
> > ---------------------------------
> > CONNEDATA GmbH
> > Software + Systemberatung
> > Sägemühlenstr. 49
> > D-26789 Leer (Ostfriesl)
> >
> > Telefon +49 (04 91) 92 765 - 22
> > Telefax +49 (04 91) 92 765 - 43
> > Mail hf_(at)_conne.net
> > =================================
> >
> > ---
> > *** Abmelden von dieser Mailingliste funktioniert per E-Mail
> > *** an mysql-de-request_(at)_lists.4t2.com mit Betreff/Subject: unsubscribe
>
> ---
> *** Abmelden von dieser Mailingliste funktioniert per E-Mail
> *** an mysql-de-request_(at)_lists.4t2.com mit Betreff/Subject: unsubscribe
---
*** Abmelden von dieser Mailingliste funktioniert per E-Mail
*** an mysql-de-request_(at)_lists.4t2.com mit Betreff/Subject: unsubscribe
php::bar PHP Wiki - Listenarchive