Stackable icon indicating copy to clipboard operation
Stackable copied to clipboard

Dynamic content: Add toggle to enable/disable strip html to text fields

Open bfintal opened this issue 4 months ago • 0 comments

When using text as dynamic content, all the HTML tags are stripped. Let's add a new toggle for text based dynamic content "Strip HTML tags" which should be enabled by default.

When the toggle is disabled, then the html tags should still be present in the rendered dynamic content.

Important things to note:

  • If this presents errors when rendering dynamic content in the backend, then only do this in the frontend and just add a note below the new toggle "Only visible in frontend"
  • all text-based fields should have this new option (even for acf, etc)

Things to test:

  • Using post content should now render paragraph <p> tags correctly
  • Text should show <strong> as bold correctly

bfintal avatar Feb 27 '24 16:02 bfintal