kontent-ai / delivery-sdk-php

Kontent.ai Delivery SDK for PHP
https://kontent.ai
MIT License
46 stars 15 forks source link

Handle Rich Text element possibly containing empty string #87

Closed zbynekh closed 4 years ago

zbynekh commented 4 years ago

Motivation

While introducing new feature Default value of element Kontent Delivery will no longer ensure empty paragraph is returned when Rich Text element is empty. PHP SDK should be able to handle also empty string while parsing the Rich Text value.

Proposed solution

Now, SDK will most probably fail in this package used: https://github.com/Kub-AT/php-simple-html-dom-parser/blob/master/src/KubAT/PhpSimple/lib/simple_html_dom.php#L117. This should be fixed as the empty string becomes also a valid input.

Simply007 commented 4 years ago

Internal link: https://kentico.atlassian.net/browse/KCL-3380