Quote:
Originally Posted by davidfor
This seem to be adding a comment and an unbalanced div. I'm seeing this with anything downloaded from Literotica.
...
|
replace_br_with_p does add the comment and
the div tag as a matched pair. These are added as markers so
replace_br_with_p can avoid running on the same text again.
But adapter_literotica has code that
removes the ending close div.
I don't really know anything about adapter_literotica's text processing, but it kind of looks like it already attempts to change <br>s to <p>s and therefore should never use replace_br_with_p. Or, conversely, that code should be removed from adapter_literotica. Or even that the adapter_literotica should only be applied when replace_br_with_p:false.
I don't use that site, so I'm fairly open to suggestions.