Change-Id: Id4414ff177c7eb08dc43ccfa97993895b93710ca
</p>
!! end
+!! test
+text with entity-escaped character entity-like string: eacute
+!! input
+I always thought &eacute; was a cute letter.
+!! result
+<p>I always thought &eacute; was a cute letter.
+</p>
+!! end
+
!! test
text with undefined character entity: xacute
!! input
</p>
!! end
+!! test
+HTML tag with necessary entities in attributes
+!! input
+<span title="&amp;">foo</span>
+!! result
+<p><span title="&amp;">foo</span>
+</p>
+!! end
+
+!! test
+HTML tag with 'unnecessary' entity encoding in attributes
+!! input
+<span title="&">foo</span>
+!! result
+<p><span title="&">foo</span>
+</p>
+!! end
TODO:
more images