DiDOM icon indicating copy to clipboard operation
DiDOM copied to clipboard

Simple and fast HTML and XML parser

Results 41 DiDOM issues
Sort by recently updated
recently updated
newest added

Представим ситуацию, у нас таблица, а внутри её ячеек есть ещё таблицы. ```php $table = new \DiDom\Element('table'); $table->setInnerHtml(' Строка 1 Ячейка 1 Строка 1 Ячейка 2 Субтаблица: Строка 1 Ячейка...

Hello, the regex in Query.php doesn't match the valid term -n+3 and thus throws an exception. Thanks in advance!

Can DiDom get all attributes into array without selecting attributes name one by one sample : ``` ``` expected result : ``` [ * "data-seller-username"=>"ʤʈʏʔʓʙʒʢʉʒʄʒʉʜ", "data-seller-name=>"ʿʈʏʎʜ˝ʰʒʟʔʑ˝ʮʈʐʐʜʏʘʞʒʓ" ]; ```

In PHP 8.2, using the [Base64, Uuencode, QPrint, and HTML Entity encodings are deprecated](https://php.watch/versions/8.2/mbstring-qprint-base64-uuencode-html-entities-deprecated#html) There is one usage of the deprecated `HTML-ENTITIES` Mbstring encoder in `\DiDom\Encoder::convertToHtmlEntities()`, which relies on the...

Подскажите, как заменить найденный элемент на некую HTML строку? Строка может быть весьма масштабна по сути, нет возможности переконвертировать ее в узлы через new Element. Есть ли какой либо способ...

Есть ли возможность проверить, что документ, загруженный в ``` $document = new Document(); $document->loadHtml($html); ``` Является валидным HTML-документом: нет контента вне тегов, атрибуты записаны корректно итд... ?

Having a markup like this: ``` https://... https://... ``` I can execute this: ``` $item->first('guid')->innerHtml() ``` but this fails: ``` $item->first('link')->innerHtml() ```

Hi! I have the following HTML code: ```` Technische Daten: » : ```` The element with class "hero_techSpecItem" I have to dublicate. I tried the following: ``` $techSpec = $document->first("#hero_techSpec");...

` var adPos = document.getElementById('adp_top_ads'); var ad_id_720 = "8014640d-fd34-4b2e-9b1b-cc67234a2325"; var ad_id_650 = "2d1bb2c4-eb72-471d-9c80-1bf5514728c1"; var ad_id_300 = "df94a1a9-ae2f-432d-9a92-d93823ff4503"; var width = window.innerWidth; var ad_id = ad_id_720; if( width