Span Tag

We are displaying html content generated by some tool in a Portlet. If the html content has a span tag, the async command on the portlet is throwing an error. Are there any known issues with the span tag?

The portlet is throwing error only in the generated html contains an empty span tag like these

We are using a Text widget to display the generated html.