You need to sign in to do that
Don't have an account?
![ehartye ehartye](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to strip HTML from SolutionNote when copying to another object
This may be common knowledge, but I'm a Java rookie and was pretty pleased with myself when I figured it out :smileytongue: .
If you're working with html solutions and need to use SolutionNote somewhere that doesn't support html formatting, the problem is easily solved using regular expressions like this:
NonHTMLField = SolutionNote.replaceAll('\\<.*?\\>', '');
This is bloddy brilliant! :smileyvery-happy:
Thanks a lot!
The solution work perfectly , this saved me lots of time
String s = 'what ever content with html';
s.stripHtmlTags()