Hi @isears . Instead of using HtmlLibraries, I have changed it to utilize regex pattern matching to disallow any user from entering HTML tags. Link for the PR :- Empt61 62 by Parth59 · Pull Request #3718 · openmrs/openmrs-core · GitHub
This has a couple of advantages over the previous method :-
i) Allows names like Frère or anyother characters.
ii) Allows Informal “spouse” as well as Household >5 years
iii) Will not give the security error as I am not including spring openmrs-web in pom.xml.
iii) Only blocks explicit Html tags. An exhaustive list of test cases that I tried can be found here NB9J14 - Online Java Compiler & Debugging Tool - Ideone.com (You might wanna fork and try with own custom examples)
Kindly do let me know if this approach works.