Hi, I have some shortcode in the widget I would like to use, however I get „Unexpected end of JSON“ error when trying for HTML output. It seems like the HTML is not escaped and thus some of the parts of it (brackets, double quotes etc) are interpreted as an part of JSON.
Hi, I have some shortcode in the widget I would like to use, however I get „Unexpected end of JSON“ error when trying for HTML output. It seems like the HTML is not escaped and thus some of the parts of it (brackets, double quotes etc) are interpreted as an part of JSON.
My shortcode:
`<?php
function ms_languages( $atts ) { $regions = array( 'europe' => ( 'Europe', 'ms' ), 'asia' => ( 'Asia', 'ms' ), 'mideast' => ( 'Middle East', 'ms' ), 'america' => ( 'America', 'ms' ), );
= esc_html( $name ) ?>
} add_shortcode( 'languages', 'ms_languages' ); `
Error:![Screenshot 2022-05-25 at 08 53 06](https://user-images.githubusercontent.com/7055428/170199129-33956c60-6643-4294-a9d7-d1e59c5f2902.png)
WPGraphQL version: 1.8.2