﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30686	Improve utils.text.Truncator &co to use a full HTML parser.	Thomas Hooper	nobody	"Original description:

> I'm using Truncator.chars to truncate wikis, and it sometimes truncates in the middle of &quot; entities, resulting in '<p>some text &qu</p>'

This is a limitation of the regex based implementation (which has had security issues, and presents an intractable problem). 

Better to move to use a HTML parser, for Truncate, and strip_tags(), via html5lib and bleach. "	Bug	new	Utilities	master	Normal				Accepted	0	0	0	0	0	0
