Open GoogleCodeExporter opened 8 years ago
Original comment by apex.es...@gmail.com
on 11 Feb 2013 at 7:18
What about
http://force-dot-com-esapi.googlecode.com/svn/trunk/doc/SFDCEncoder.html#SFDC_HT
MLENCODE(String) ?
Original comment by apex.es...@gmail.com
on 11 Feb 2013 at 7:26
Proposed code
global static String stripHtml(String dirtyString) {
String cleanString = dirtyString;
// remove all HTML tags
cleanString = cleanString.replaceAll('<[^>]+>',' ');
return cleanString;
}
Original comment by sascha.k...@gmail.com
on 12 Feb 2013 at 4:04
This enhancement is no longer needed since the base String class now has a
stripHtmlTags method:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_System_String_
stripHtmlTags.htm
Original comment by shadowsi...@gmail.com
on 23 Dec 2013 at 4:23
Original issue reported on code.google.com by
sascha.k...@gmail.com
on 11 Feb 2013 at 4:32