The following paragraph is not detected as a verse by the bib.ly module
<p>2 <strong>Timothy</strong> 3:16</p>
although this
2 Timothy 3:16
works perfectly.
To see this replicated, go search the word "Timothy" on http://www.christianstudylibrary.org :D
Comments
Comment #1
mfer commentedYou've hit on a difficult problem on two counts. First, this module implements the script but doesn't control it. This is an issue for the bib.ly script that does the highlighting.
That being said, parsing something like
<p>2 <strong>Timothy</strong> 3:16</p>to extract the bible verse is a significant task. I'm not sure the bibly script should or could attempt to tackle it.Comment #2
rudolfbykerSorry for this late reply, but here's an idea: Strip the tags before handing the raw text to the bib.ly script.
http://php.net/manual/en/function.strip-tags.php
Would this work, or do other problems arise?
Comment #3
mfer commented@fmr sorry for the late response. I had forgotten about this module.
bib.ly works entirely in JavaScript. Using a PHP function to strip the tags out first isn't available.