I just uploaded 1.6.2 that should fix this.
Solution doesn’t do the trick completely yet. 🙁
Still have issues with shortcodes that are in repeated single line fields.
We do a array(‘raw’ => true, ‘separator’ => ‘|’) on the field so we can then explode the result of types_render function on the ‘|’ character. And have an array of shortcode strings.
All those have still escaped quotes ( \” ) and now we have to do array_map( ‘stripslashes_deep’, $variable ) to be able to use the array result with do_shortcode …
🙁 🙁
Are you sure about this. I’ve tested with
<?php $result = types_render_field('repeating-single-line', array('raw' => true, 'separator' => '|') ); ?>
The return data doesn’t include escaped quotes.
<img src=”4.jpeg”>|<img src=”5.jpeg”>
That gives me:
[section name=\”window-1\” template=\”block\”]|[section name=\”window-2\” template=\”block\”]|[section name=\”window-3\” template=\”block\”]
strange
I am having a similar problem. I have a text area on some pages for users to input javascript. I then output the contents of that field in the footer. Now all of the quotes are escaped even though I am using ‘raw’=>true.
http://smkazoo.com/home-cleaning/ you can look for the wistiaEmbed variable and metadata.js to see the problem.
I’ve managed to reproduce this.
Please change line 334 of embedded/frontend.php from:
return $output;
to:
return htmlspecialchars_decode( stripslashes( strval( $output ) ) );
Let me know if this fixes your issues.