After the 2.3.1 upgrade, which included/enabled Page Builder, a custom section we have that loads block content and displays it now escapes the html tags so it outputs all of the html visible on the page.
This only happens to blocks after we save them with Page Builder enabled, looking in the database table cms_block
before and after save the main differences are that it is now wrapped in an extra div, and the html is escaped so that <div>
is saved as <div>
. These blocks are "html" type in the new Page Builder UI, so we expect them to accept html.
The code does the following:
$block = $this->blockRepository->getById($blockId);
$content = $block->getContent();
which is then output in a template.