I need to add a some more rules on textarea tag from low-security-policy in ashai to antisamy project

StackOverflow https://stackoverflow.com/questions/20947538

  •  24-09-2022
  •  | 
  •  

문제

Actually i have a html code with empty textarea tag now i need to send this one to anti samy project but it will convert empty textarea tag to self closing textarea tag

 String html="<textarea></textarea> some data here <textarea></textarea>";

when i send the above code to anti samy it will give a following output like:

String html="<textarea/>some data here <textarea/>";

but this is not correct syntax in html so i think that i need to write the rules in "low-security-policy" in ashai for antisamy project.

so can any one help.

Thanks in advance

도움이 되었습니까?

해결책

At finally I found solution for this one

just remove textarea tag from allowed-empty tags in policy files then it will be working fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top