Javascript tags not detecting by Aspose.pdf version 23.5

Team, I have found issue like if I include javascript via Acrobat writer ( like document.beforeclose) it’s not detected by Aspoae.pdf. I have checked in document.javascript.keys, document.actions, pages[1].actions, pages[1].Annotations. I couldn’t find the javascripts items. Please check and let me know solutions.
2) 23.5 - Richtextbox - anyway HTML tags are not working except bold, italic tags. Anyway we convinced business to use only 2 tags. But problem here, If they use & < characters, html tags are not rendering properly. If we use below stmt: it’s not working properly. test < & test . Please check and let us any alternate solutions. Appreciate your help in ahead.
Thanks, Amar

@Amarsha

Would you please share your sample PDF document and the sample code snippet for our reference? We will test the scenario in our environment and address it accordingly.