#striptags # import re # strip tags function def striptags(self,string=""): return re.sub("<[^>]*?>|&lt;[^>]*?&gt;","",string)