'IOS stringByEvaluatingJavaScriptFromString alternative for SpringBoot or Ionic/Angular

With my team, we are deploying an application - Frontend: Ionic 6 with Angular v.13 - Backend: SpringBoot v.2.5.5

We need to find a way to display in an email sent by Outlook all the styles and scripts of an html collected in a string in the backend, such as a table creation script.

We have implemented what we want to do in another app in IOS using the stringByEvaluatingJavaScriptFromString method of the webview object, which executes the scripts that the html has

Is there an alternative to stringByEvaluatingJavaScriptFromString IOS method that can be used in our Ionic/Angular-SpringBoot app? We are looking for the script evaluation to be done in the backend, rather than in the frontend, but we do not rule out any alternative.

I ask for help from anyone who can help me. Thanks in advance.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source