Rich text editor exposes underlying HTML anchor tags when pasting content from Bible Gateway

XFConvert

Member
Licensed customer
Affected version
2.3.9
When our members paste in a Bible verse/passage from Bible Gateway, the rich text editor exposes the underlying HTML link tags. For example, if you go to biblegateway.com and look up Matthew 1:1 (New International Version) and then copy and paste it to here, you'll see this (I added the bold here):

This is the genealogy[<a href="https://www.biblegateway.com/passage/?search=Matthew 1:1&amp;version=NIV#fen-NIV-23146a" title="See footnote a">a</a>] of Jesus the Messiah[<a href="https://www.biblegateway.com/passage/?search=Matthew 1:1&amp;version=NIV#fen-NIV-23146b" title="See footnote b">b</a>] the son of David, the son of Abraham:

What should show is simply this (which is exactly what you see on the Bible Gateway page):

This is the genealogy[a] of Jesus the Messiah the son of David, the son of Abraham:

I think this was not an issue before we upgraded from 2.0.6 to 2.3.9. Please pardon me if this does not qualify as a bug -- if there's a simple setting to prevent this, let me know.
 
I see, they are literally copying the text of the page...


The Genealogy of Jesus the Messiah​

1 This is the genealogy[<a href="https://www.biblegateway.com/passage/?search=Matthew 1:1&amp;version=NIV#fen-NIV-23146a" title="See footnote a">a</a>] of Jesus the Messiah[<a href="https://www.biblegateway.com/passage/?search=Matthew 1:1&amp;version=NIV#fen-NIV-23146b" title="See footnote b">b</a>] the son of David, the son of Abraham:
Read full chapter

Footnotes​

  1. Matthew 1:1 Or is an account of the origin
  2. Matthew 1:1 Or Jesus Christ. Messiah (Hebrew) and Christ (Greek) both mean Anointed One; also in verse 18.
Matthew 1:1 in all English translations
 
Looks like the way they are using the sup tag is rendering html entities from their side. not much XF can do about this.
they must be rendering sup tags with some JS or something which reads the entity in raw and parses it.

Code:
<div class='std-text'> <h3><span id="en-NIV-23146" class="text Matt-1-1">The Genealogy of Jesus the Messiah<sup class='crossreference' data-cr='#cen-NIV-23146A'  data-link='(&lt;a href=&quot;#cen-NIV-23146A&quot; title=&quot;See cross-reference A&quot;&gt;A&lt;/a&gt;)'>(<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#cen-NIV-23146A']#cen-NIV-23146A[/URL]" title="See cross-reference A">A</a>)</sup><sup class='crossreference' data-cr='#cen-NIV-23146B'  data-link='(&lt;a href=&quot;#cen-NIV-23146B&quot; title=&quot;See cross-reference B&quot;&gt;B&lt;/a&gt;)'>(<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#cen-NIV-23146B']#cen-NIV-23146B[/URL]" title="See cross-reference B">B</a>)</sup><sup class='crossreference' data-cr='#cen-NIV-23146C'  data-link='(&lt;a href=&quot;#cen-NIV-23146C&quot; title=&quot;See cross-reference C&quot;&gt;C&lt;/a&gt;)'>(<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#cen-NIV-23146C']#cen-NIV-23146C[/URL]" title="See cross-reference C">C</a>)</sup></span></h3><p class="chapter-1"><span class="text Matt-1-1"><span class="chapternum">1 </span>This is the genealogy<sup data-fn='#fen-NIV-23146a' class='footnote' data-link='[&lt;a href=&quot;#fen-NIV-23146a&quot; title=&quot;See footnote a&quot;&gt;a&lt;/a&gt;]'>[<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#fen-NIV-23146a']#fen-NIV-23146a[/URL]" title="See footnote a">a</a>]</sup> of Jesus the Messiah<sup data-fn='#fen-NIV-23146b' class='footnote' data-link='[&lt;a href=&quot;#fen-NIV-23146b&quot; title=&quot;See footnote b&quot;&gt;b&lt;/a&gt;]'>[<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#fen-NIV-23146b']#fen-NIV-23146b[/URL]" title="See footnote b">b</a>]</sup> the son of David,<sup class='crossreference' data-cr='#cen-NIV-23146D'  data-link='(&lt;a href=&quot;#cen-NIV-23146D&quot; title=&quot;See cross-reference D&quot;&gt;D&lt;/a&gt;)'>(<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#cen-NIV-23146D']#cen-NIV-23146D[/URL]" title="See cross-reference D">D</a>)</sup> the son of Abraham:<sup class='crossreference' data-cr='#cen-NIV-23146E'  data-link='(&lt;a href=&quot;#cen-NIV-23146E&quot; title=&quot;See cross-reference E&quot;&gt;E&lt;/a&gt;)'>(<a href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201%3A1&version=NIV#cen-NIV-23146E']#cen-NIV-23146E[/URL]" title="See cross-reference E">E</a>)</sup></span></p> </div><div class='il-text'></div><a class="full-chap-link" href="[URL='https://www.biblegateway.com/passage/?search=Matthew%201&version=NIV']/passage/?search=Matthew%201&version=NIV[/URL]" title="View Full Chapter">Read full chapter</a>/[code]
 
We post links to Bible Gateway all the time on my site (religious discussion forum) and I have never seen that happen. I keep the site up to date so that's pretty much every major and minor Xenforo release since unfurling was introduced. I will test on my site but based on my experience, I don't think the problem is on Xenforo's side at first blush. I think Bible Gateway changed something.
 
Back
Top Bottom