prepareComment

  1. drupal
    1. drupal7
Versionen
drupal7 public DatabaseSchema_mysql::prepareComment($comment, $length = NULL)

Verwandte Themen

Code

includes/database/mysql/schema.inc, line 351

<?php
public function prepareComment($comment, $length = NULL) {
  // Decode HTML-encoded comments.
  $comment = decode_entities(strip_tags($comment));

  // Work around a bug in some versions of PDO, see http://bugs.php.net/bug.php?id=41125
  $comment = str_replace("'", '’', $comment);

  // Truncate comment to maximum comment length.
  if (isset($length)) {
    // Add table prefixes before truncating.
    $comment = truncate_utf8($this->connection->prefixTables($comment), $length, TRUE, TRUE);
  }

  return $this->connection->quote($comment);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen