We would greatly appreciate any assistance or insight into this problem.
Best answer by SachinView original
Thank you for your patience.
You need to enable the stack_variables by adding the sys_rte_allowed_tags in the request body of Add Stack settings API call. It will help you to retain the <style> and <script> tags in the HTML RTE.
Please refer the below documentation link for your reference.