Does plone have a built in system/method that I could call for
stripping HTML tags from text?
I've created a portal type that uses body text for the description as well.
It uses portal_transforms to make description be returned as plain text.
Here's a snippet from my code
del schema['description']
def Description(self):
"""
custom description method
"""
portal_transforms = getToolByName(self, 'portal_transforms')
return self.getText(mimetype = 'text/plain')
The problem is I keep getting html tags like <p> and <br /> etc... in
Description
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers