Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove html tags from diatheke output #8

Merged

Conversation

TamaMcGlinn
Copy link
Contributor

I found it really annoying that my diatheke output was covered in html tags saying which words are to be marked italic or red, etc. For example, this was the output when requesting John 3:16 from the KJV prior to this change:

John 3:16: <q marker=""><milestone marker="" type="x-p"/><w  savlm="strong:G3588 lemma.TR:ο" src="17"/><w  savlm="strong:G3588 lemma.TR:τον" src="12"/><w  savlm="strong:G1063 lemma.TR:γαρ" src="2">For</w> <w  savlm="strong:G3588 strong:G2316 lemma.TR:ο lemma.TR:θεος" src="4 5">God</w> <w  savlm="strong:G3779 lemma.TR:ουτως" src="1">so</w> <w  savlm="strong:G25 lemma.TR:ηγαπησεν" src="3">loved</w> <w  savlm="strong:G3588 strong:G2889 lemma.TR:τον lemma.TR:κοσμον" src="6 7">the world</w>, <w  savlm="strong:G5620 lemma.TR:ωστε" src="8">that</w> <w  savlm="strong:G1325 lemma.TR:εδωκεν" src="14">he gave</w> <w  savlm="strong:G846 lemma.TR:αυτου" src="11">his</w> <w  savlm="strong:G3439 lemma.TR:μονογενη" src="13">only begotten</w> <w  savlm="strong:G3588 strong:G5207 lemma.TR:τον lemma.TR:υιον" src="9 10">Son</w>, <w  savlm="strong:G2443 lemma.TR:ινα" src="15">that</w> <w  savlm="strong:G3956 lemma.TR:πας" src="16">whosoever</w> <w  savlm="strong:G4100 lemma.TR:πιστευων" src="18">believeth</w> <w  savlm="strong:G1519 lemma.TR:εις" src="19">in</w> <w  savlm="strong:G846 lemma.TR:αυτον" src="20">him</w> <w  savlm="strong:G622 lemma.TR:αποληται" src="22" type="x-split-1793">should</w> <w  savlm="strong:G3361 lemma.TR:μη" src="21">not</w> <w  savlm="strong:G622 lemma.TR:αποληται" src="22" type="x-split-1793">perish</w>, <w  savlm="strong:G235 lemma.TR:αλλ" src="23">but</w> <w  savlm="strong:G2192 lemma.TR:εχη" src="24">have</w> <w  savlm="strong:G166 lemma.TR:αιωνιον" src="26">everlasting</w> <w  savlm="strong:G2222 lemma.TR:ζωην" src="25">life</w>.</q>  

After, it becomes:

John 3:16: For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.

According to the documentation, there is an 'output format' option which can be specified as plain text, but it doesn't appear to work.

@robertrosman
Copy link
Owner

Strange that the output format option doesn't work. Fully reasonable to strip out the markup.

@robertrosman robertrosman merged commit e0f8d18 into robertrosman:master May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants