Title: Issues with html code in api answer
Last modified: July 8, 2026

---

# Issues with html code in api answer

 *  [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [13 hours ago](https://wordpress.org/support/topic/issues-with-html-code-in-api-answer/)
 * I am using the Gutenberg Block and try to fetch the data in r[endered node](https://almgrill.de/wp-json/public/v1/reusable?slug=speisekarte).
   My template is very simple: {rendered:html}
 * But the plugin outputs this:
 *     ```wp-block-code
       <div class="&quot;wp-block-columns"><div class="&quot;wp-block-column"><div class="&quot;wp-block-columns"><div class="&quot;wp-block-column"><figure class="&quot;wp-block-image"><img decoding="async" src="//almgrill.de/wp-content/uploads/2026/07/neue-Karten-Pfifferlinge-pdf-543x768.jpg&quot;" alt="&quot;Vorschau" /></figure></div>…
       ```
   
 * as you can see it inserts kind of encoded quotes in class, alt and src attribute
   and strips out classes in general. The first div should contain “wp-block-columns
   is-layout-flex wp-container-core-columns-is-layout-995f960e wp-block-columns-
   is-layout-flex” but only “wp-block-columns” is rendered?!

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissues-with-html-code-in-api-answer%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [nicmare](https://wordpress.org/support/users/nicmare/)
 * Last activity: [13 hours ago](https://wordpress.org/support/topic/issues-with-html-code-in-api-answer/)
 * Status: not resolved