Bar is missing and the ['\n'] create these tracebacks:
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 167, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 376, in publish_module
Module ZPublisher.WSGIPublisher, line 271, in publish
Module ZPublisher.mapply, line 85, in mapply
Module Products.PDBDebugMode.wsgi_runcall, line 60, in pdb_runcall
Module plone.rest.service, line 22, in __call__
Module plone.restapi.services, line 19, in render
Module plone.restapi.services.content.get, line 16, in reply
Module plone.restapi.serializer.dxcontent, line 159, in __call__
Module plone.restapi.serializer.dxcontent, line 111, in __call__
Module plone.restapi.serializer.blocks, line 82, in __call__
Module plone.restapi.serializer.blocks, line 69, in apply_block_serialization_transforms
Module plone.restapi.deserializer.blocks, line 265, in __call__
AttributeError: 'str' object has no attribute 'get'
This text:
"<div><b>Foo</b> <br /><br />Bar</div>"
Creates the following blocks:
Bar
is missing and the['\n']
create these tracebacks:Without the line-breaks it is also broken:
"<div><b>Foo</b> Bar</div>"
drops theBar
:Inside a
<p>
the result is ok:<p><b>Foo</b> <br /><br />Bar</p>
Example: https://plone.org/foundation/materials/privacy