function spanWrapWithKnownDir(formatter, dir, html) {
  return SafeHtml.unwrap(formatter.spanWrapSafeHtmlWithKnownDir(
      dir, testing.newSafeHtmlForTest(html)));
}
@param {!BidiFormatter} formatter
@param {?Dir} dir
@param {string} html
@return {string}