Single Quote in Block Sections are causing errors

Hey,

I’ve tried to create some Gutenberg blocks with Pinegrow and was wondering why some of my sections weren’t visible inside Gutenberg. I’ve checked the block files created by Pinegrow and saw that there were some issues because some of my HTML markup is containing attributes with JavaScript arrays.

A short example:

  <div class="progress-bar progress-bar-sm bg-primary text-color-primary" role="progressbar" data-slider="{'decimal': 1}">

The Array inside the data-slider attribute is causing an issue cause it breaks the javascript file generated by Pinegrow.

Any ideas how to solve this?

The latest PG Live 6.7.2 addresses the issues mentioned in this topic. See details below and please report any issues into their respective forum topics. Note, these features are considered Beta for now.

Pinegrow Web Editor

Pinegrow Live update log | Pinegrow Web Editor

The exciting story of Pinegrow Live updates.

Awesome!! That’s the fastest update I’ve ever seen after submitting an issue. Thank you :slight_smile:

2 Likes