View Single Post
Old 06-12-2020, 08:26 PM   #668
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by theoddpassenger View Post
Is there a way to get the plugin to use the interpreted Normal View rather than the HTML source when putting the comments/summary on the cover?
Have you tried using FFF's setting to strip HTML from comments?

Code:
## If set false, the summary will have all html stripped.
## Both this and include_images must be true to get images in the
## summary.
keep_summary_html:false
Also, you can strip html tags in GC by using this for custom text:
Code:
{comments:re(<[^>]+>, )}
Although it does behave a bit oddly for me--The code for that gets corrupted when you go to edit it again, becoming {comments:re(]+>, )} instead.

So if you set it once and just leave it, it works. But if you want to change it later, you have to put the whole thing in again.

I suspect that's an issue with Qt's edit box stripping what it thinks are tags? It also strips if I put in <> by it self. Not sure what to do about that, honestly. I'll investigate and see if I can fix it properly.

Neither of those will preserve line breaks in comments like Cleaning Comments will, unfortunately. Might be doable in the GC regexp.
JimmXinu is offline   Reply With Quote