I have an index.jsp page in my src, with the below line
<html>
<body>
<%@ page import = "java.io.*,java.util.*" %>
</body></html>
But after doing an ng build, the dist folder contains the same jsp page as below.
<html>
<body>
<%@ page import = "java.io.*,java.util.*" %>
</body></html>
Any idea as to why < gets replaced by lt and > by gt? Any options to override this?
Regards, Ganesh.
CodePudding user response:
Look at https://angular.io/guide/security For security reasons, Angular replaces unsafe characters with safe values. Personally, I add my JSP code after compiling the Angular code. I take the Angular code out of the index.html file and put it into the index.jsp file in my web server. You should also know about HTML entities. Look at https://developer.mozilla.org/en-US/docs/Glossary/Entity
