tidy::$errorBuffer

tidy_get_error_buffer

(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)

tidy::$errorBuffer -- tidy_get_error_bufferReturn warnings and errors which occurred parsing the specified document

Beschreibung

Objektorientierter Stil (property):

public string $tidy->errorBuffer;

Prozeduraler Stil:

tidy_get_error_buffer(tidy $tidy): string|false

Returns warnings and errors which occurred parsing the specified document.

Parameter-Liste

tidy

Das Tidy Objekt.

Rückgabewerte

Returns the error buffer as a string, or false if the buffer is empty.

Beispiele

Beispiel #1 tidy_get_error_buffer() example

<?php
$html 
'<p>paragraph</p>';

$tidy tidy_parse_string($html);

echo 
tidy_get_error_buffer($tidy);
/* or in OO: */
echo $tidy->errorBuffer;
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: inserting missing 'title' element

Siehe auch

  • tidy_access_count() - Returns the Number of Tidy accessibility warnings encountered for specified document
  • tidy_error_count() - Returns the Number of Tidy errors encountered for specified document
  • tidy_warning_count() - Returns the Number of Tidy warnings encountered for specified document

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

creation site web maroc

----------------- Mouatamid ----------------- Le cabinet Mouatamid Law Firm (https://www.mouatamidlawfirm.com/) est un cabinet d’avocats maroca ...

Geschrieben von redcityweb am 16.02.2026 12:26:49
Forum: Ankündigungen
creation site web maroc

----------------- Kraftsol ----------------- Kraftsol (https://www.kraftsol.ma/) est la référence marocaine en matière de carreaux de ciment ha ...

Geschrieben von redcityweb am 16.02.2026 12:24:52
Forum: Ankündigungen
creation site web maroc

----------------- ksarshama ----------------- Découvrez le charme du Haut Atlas marocain (https://www.ksarshama.com/) en séjournant dans un hô ...

Geschrieben von redcityweb am 16.02.2026 12:22:35
Forum: Ankündigungen
creation site web maroc

----------------- Duchapro ----------------- Duchapro – Équipements sanitaires & sanitaire design à Casablanca, Maroc Duchapro (https://www.d ...

Geschrieben von redcityweb am 16.02.2026 12:21:01
Forum: Ankündigungen