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
doc=nlp(`if i can recall, my grey dog loves pizza crusts (they are really good).`)html=doc.html({'.red': 'my grey dog','.blue': doc.match('loves')})t.equal(html,`if i can recall, <span class="red">my grey dog</span> <span class="blue">loves</span> pizza crusts (they are really good).`,here+'html two classes')
Currently returning:
if i can recall, <spanclass="red">my grey dog</span><spanclass="redTwo">loves</span> pizza crusts ( are really good).
suggestion is:
out+=t.pre||''out+=t.text||''
Any issues with that?
The text was updated successfully, but these errors were encountered:
compromise/src/1-one/output/api/html.js
Line 67 in 4ef66b3
Test case:
Currently returning:
suggestion is:
Any issues with that?
The text was updated successfully, but these errors were encountered: