function spanWrap(formatter, html, dirReset = undefined) {
  return SafeHtml.unwrap(
      formatter.spanWrapSafeHtml(testing.newSafeHtmlForTest(html), dirReset));
}
@param {!BidiFormatter} formatter
@param {string} html
@param {boolean=} dirReset
@return {string}