Deal with Gutenberg table block via API

Hi, i have an issue when i post a Gutenberg block of type table by using the rest API.

I sent this block via API

<!-- wp:table {"hasFixedLayout": false, "align": "center"} -->

<figure class="wp-block-table aligncenter">

<table>

<thead>

<tr>

<th style="text-align:left">Città</th>

<th style="text-align:right">Popolazione</th>

<th style="text-align:center">Cool factor</th>

</tr>

</thead>

<tbody>

<tr>

<td style="text-align:left">Sant’Arpino</td>

<td style="text-align:right">18000</td>

<td style="text-align:center">Frenz</td>

</tr>

<tr>

<td style="text-align:left">Succivo</td>

<td style="text-align:right">9000</td>

<td style="text-align:center">Clenz</td>

</tr>

<tr>

<td style="text-align:left">Gricignano</td>

<td style="text-align:right">13000</td>

<td style="text-align:center">Fuckens</td>

</tr>

<tr>

<td style="text-align:left">Pomigliano</td>

<td style="text-align:right">28000</td>

<td style="text-align:center">Brackens</td>

</tr>

</tbody>

</table>

</figure>

<!-- /wp:table -->

When i open the post in edit for the table block WP is reporting that there is a corrupted or unexpected format:

https://preview.redd.it/l3tghec5jrrd1.png?width=647&format=png&auto=webp&s=09e53e282639cef7666d4ff265f4a8e406bd5aea

is there something wrong in the block syntax?

1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer