Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP: Eine html Klasse basteln

Empfohlene Antworten

Hallo,

mir schwirren da zwei Ansätze im Kopf rum:

Soll ich das so machen:

html->neues element erzeugen("div")

html->werte in Element schreiben

....

html->Ausgabe Element

html->erzeuge Kindelement.....

ODER eher sowas:

html->div("blalba")

html->div(html->div(html->span("text")));

Du kannst doch beides implementieren. Wobei das letztere doch recht aufwändig werden wird (es gibt ja zahlreiche tags und mögliche attribute).

Ich würde also für die erste Variante plädieren. Als Backend kannst du auf die domxml-Funktione von PHP nutzen.

Zusätzlich solltest du die Gültigkeit des Dokuments prüfen; entweder in dem du es gegen eine DTD/ XML-Schema -Datei prüfst, oder in dem du die Regel selber irgendwo festlegst.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.