Add ability to include replacement data with span

Add the ability to include replacement data with a span that has a
‘data-html-to-text-replacement’ data attribute on it. This will allow
replacement data in cases like when using Bootstrap glyphicons within
tables or other elements that would normally not show up except when
viewing the data in a web browser.