I am using Elementor and Formidable Forms. One of the forms I am running is a quiz which gives a result based on the person's answers. There is the option to include a Content Template so I have inserted a Content Template into the outcome view, and it comes up with this output on the page:
That relates to styling information from the content template when designing the template with blocks.
If you are not using blocks to style the template and you have inserted the template using shortcodes (specifically the wpv-post-body shortcode) then you should be able to prevent these encoded styles from appearing by by adding the attribute suppress_filters="true" to the wpv-post-body shortcode.
If you are using blocks then it becomes problematic, I guess the text is appearing because of the unexpected context it's being used in, but perhaps you are working with shortcodes...
I am a bit confused as I did both of those things.
I created the content template using blocks then inserted it using a shortcode.
Please see the attached screenshots of:
1. Front end error displaying
2. Formidable forms outcome (which produces the output for 1.) with the shortcode
3. My content template styled with blocks
Not sure how I could do this any differently but you may have suggestions.
If that doesn't work, then the only option would be to use a content template that is created using the classic/legacy editor and not the blocks editor.
I hope this helps and please let me know if you need any further assistance with this.
Thank you Waqar. No, I hadn't tried that, as Nigel said I should try that if I'm not using Blocks.
However, despite using Blocks, I have just tried adding the suppress_filters="true" attribute and it has fixed the issue. Is this an acceptable workaround, do you think? Or is it just "covering up" an issue?
Would it be preferable to use the legacy editor, or will that eventually be phased out?
Thanks for the update and glad that this is sorted.
We generally recommend not mixing the content from different page/content builders. For example, if your primary page/content builder is Elementor, it is better to use the classic/legacy content template, to include any content template within it.
( the blocks-based content template is a better fit for the blocks-based Gutenberg environment ).
As for this particular case, using the suppress_filters="true" attribute should be a perfectly safe and acceptable workaround.