You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something is wrong when there is bold text (text surrounded by the <strong> element). Take for example:
a = "<p>adfadf<br>\n222<br>\nfoo <strong>bar</strong> was <code>here</code> 333<br>\nhere too<br>\n444<br>\n55 <strong>bold text added</strong><br>\n66</p>\n"
b = "<p>adfadf<br>\n222<br>\nfoo <strong>bar</strong> was <code>here</code> 333<br>\nhere too<br>\n444<br>\n55<br>\n66</p>\n"
Differ.diff_by_word(a, b).format_as(:html).html_safe
The following renders as:
<p>adfadf<br>
222<br>
foo <strong>bar</strong> was <code>here</code> 333<br>
here too<br>
444<br>
55<del class="differ"><</del><ins class="differ"> <strong>bold text added</strong><</ins>br>
66</p>
Notice the < characters. Is this normal? Which renders in the browser inappropriately...
The text was updated successfully, but these errors were encountered:
It's not designed to be HTML-aware and diffs raw strings. So, tags might be unmatched, or even cut in the middle, this is normal.
Outputting source tags as-is in html output is probably a bug: #15.
Something is wrong when there is bold text (text surrounded by the
<strong>
element). Take for example:The following renders as:
Notice the
<
characters. Is this normal? Which renders in the browser inappropriately...The text was updated successfully, but these errors were encountered: