madrian
11 years agoGuide
utils.html.stripper.from.owasp methods
hi!
I'm working on a custom component and I'd like to strip out some html elements from a string. I was looking at the "stripper methods" at http://community.lithium.com/t5/Developers-Knowledge-Base/utils-FreeMarker-context-object/ta-p/9345#stripperMethods
because I would like to keep some html tags in the string, I wanted to use this:
utils.html.stripper.from.owasp.newOptionsBuilder.allowElement(String element)
so I copy/pasted the example code which gives me this error:
am I doing something wrong? do I have to enable/change something? can somebody help me make this function work?
thank you!