You need to sign in to do that
Don't have an account?
ehartye
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()