<p>So thanks to @Dajo on the Craft Discord channel for any other folk out there experiencing similar turns out there was a config set-up for the site wasn't aware of that had set the <code>dataDelimiter</code> parameter to  <code>,</code> which was exploding the HTML content into an array.</p>
<p>Changing this has sorted the problem!</p>

CC BY-SA 4.0
2021-05-18T19:38:57.823Z
2021-05-18T19:38:57.823Z
Cole Henley
<p>Having had a bit of a nightmare trying to get content out of Wordpress into Craft via Feedme have written an intermediary script to sanitise the WP XML export into something more palatable (JSON).</p>
<p>However still having issues and it looks like Feedme is breaking the supplied string for HTML content into an array (breaking on commas).</p>
<p>For example:</p>
<pre><code>&quot;content&quot;:&quot;&lt;p&gt;&lt;h2&gt;Importance of passing your MOT first time&lt;\/h2&gt;&lt;p&gt;At Rygor, we understand that … &lt;/p&gt;&quot;
</code></pre>
<p>Is being passed into Redactor (via the Feedme debug) as:</p>
<pre><code>(
    [type] =&gt; text
    [enabled] =&gt; 1
    [collapsed] =&gt; 
    [fields] =&gt; Array
        (
            [body] =&gt; [&quot;&lt;p&gt;&lt;h2&gt;Importance of passing your MOT first time&amp;lt;\/h2&amp;gt;&lt;/h2&gt;&lt;p&gt;At Rygor&quot;,&quot;we understand that it is important to … 
        )
)
</code></pre>
<p>Oddly the body string has no closing quote.
Any thoughts how best to encode my HTML string or to avoid FeedMe breaking my string into an array?</p>

CC BY-SA 4.0
2021-05-18T16:36:17.423Z
Sample JSON > [link](https://gist.github.com/cole007/1ced88f31029083054d238c734cafd24)
Cole Henley
<redactor><plugin-feedme><json>
Feedme import formatting into Refactor from JSON
# Feedme import formatting into Refactor from JSON

(Asked by: username_0 on 2021-05-18)

Having had a bit of a nightmare trying to get content out of Wordpress into Craft via Feedme have written an intermediary script to sanitise the WP XML export into something more palatable (JSON).
However still having issues and it looks like Feedme is breaking the supplied string for HTML content into an array (breaking on commas).
For example:
"content":"Importance of passing your MOT first time<\/h2>At Rygor, we understand that … "

Is being passed into Redactor (via the Feedme debug) as:
(
    [type] => text
    [enabled] => 1
    [collapsed] => 
    [fields] => Array
        (
            [body] => ["Importance of passing your MOT first time<\/h2>At Rygor","we understand that it is important to … 
        )
)

Oddly the body string has no closing quote.
Any thoughts how best to encode my HTML string or to avoid FeedMe breaking my string into an array?

**Tags:** redactor, plugin-feedme, json

> **Comments:**
> **username_0**: Sample JSON > [link](https://gist.github.com/cole007/1ced88f31029083054d238c734cafd24)  

---

## 1 answers

### Answer by username_0 on 2021-05-18. Score: 1

So thanks to @Dajo on the Craft Discord channel for any other folk out there experiencing similar turns out there was a config set-up for the site wasn't aware of that had set the `dataDelimiter` parameter to `,` which was exploding the HTML content into an array.

Changing this has sorted the problem!


---

